aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/progress_frame.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-08-28 12:57:57 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-28 21:16:14 +0000
commitaa100e0726dcade27a59f7962c465cfb7e61e284 (patch)
treead9ed3c46b18c947fc8b255cddc51664c8ce15ea /ui/qt/progress_frame.cpp
parentc1c6132c0dfd81a5f8a014d7df71218e2e8c34f7 (diff)
Don't show a progress frame if our file was closed.
Change-Id: Ie363f6764f4e8b2b5c476b85f7ddb0233a127f6e Reviewed-on: https://code.wireshark.org/review/10290 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/progress_frame.cpp')
-rw-r--r--ui/qt/progress_frame.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/qt/progress_frame.cpp b/ui/qt/progress_frame.cpp
index fd24ff3313..8c9576ae0a 100644
--- a/ui/qt/progress_frame.cpp
+++ b/ui/qt/progress_frame.cpp
@@ -211,6 +211,18 @@ void ProgressFrame::addToButtonBox(QDialogButtonBox *button_box, QObject *main_w
main_progress_frame, SIGNAL(stopLoading()));
}
+void ProgressFrame::captureFileClosing()
+{
+ // Hide any paired ProgressFrames and disconnect from them.
+ emit setHidden();
+ disconnect(SIGNAL(showRequested(bool,bool,gboolean*)));
+ disconnect(SIGNAL(maximumValueChanged(int)));
+ disconnect(SIGNAL(valueChanged(int)));
+
+ connect(this, SIGNAL(showRequested(bool,bool,gboolean*)),
+ this, SLOT(show(bool,bool,gboolean*)));
+}
+
void ProgressFrame::setValue(int value)
{
ui->progressBar->setValue(value);