diff options
author | Yordan Karadzhov (VMware) <y.karadz@gmail.com> | 2021-04-28 16:47:27 +0300 |
---|---|---|
committer | Yordan Karadzhov (VMware) <y.karadz@gmail.com> | 2021-05-11 16:00:02 +0300 |
commit | e76486d9e5f85ac53610777bb33b93f77f5e54dd (patch) | |
tree | c312c34365f255d2a075621ad07307aa3c254e42 | |
parent | 5f8a9bf3ab4bba71aa8705786c771f2f7ae107c1 (diff) | |
download | kernel-shark-e76486d9e5f85ac53610777bb33b93f77f5e54dd.tar.gz |
kernel-shark: Disable the pop-up offset dialog
The pop-up dialog that asks for the time offset, when a trace data
file is appended, is a legacy from the time when we have been doing
the calculation of the offset by hand. It still can be useful in some
specific cases, but the user can do the same from the "Tools" menu.
Link: https://lore.kernel.org/linux-trace-devel/20210428134730.187533-7-y.karadz@gmail.com
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
-rw-r--r-- | src/KsMainWindow.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/KsMainWindow.cpp b/src/KsMainWindow.cpp index e830c5ea..d0a434af 100644 --- a/src/KsMainWindow.cpp +++ b/src/KsMainWindow.cpp @@ -1248,7 +1248,7 @@ void KsMainWindow::_load(const QString& fileName, bool append) QString pbLabel("Loading "); bool loadDone = false; struct stat st; - double shift; + double shift(.0); int ret, sd; ret = stat(fileName.toStdString().c_str(), &st); @@ -1264,15 +1264,6 @@ void KsMainWindow::_load(const QString& fileName, bool append) qInfo() << "Loading " << fileName; - if (append) { - bool ok; - shift = KsTimeOffsetDialog::getValueNanoSec(fileName, &ok); - if (ok) - shift *= 1000.; - else - shift = 0.; - } - if (fileName.size() < 40) { pbLabel += fileName; } else { |