aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main.cpp
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2014-09-18 16:19:33 -0400
committerEvan Huus <eapache@gmail.com>2014-09-20 18:19:07 +0000
commit2cd9784f104234095a9c4a1eee4b4afcf3ad39d0 (patch)
tree037d4c70749729507bed350f83f2f6497533935d /ui/qt/main.cpp
parent845e5e5c98456703b8f8e10a648413f268722406 (diff)
Fix sizing of qtshark based on the saved (recent) geometry.
Do this by emitting the StaticRecentFilesRead signal after reading the static portion of the recent file. Unfortunately this results in the main window appearing in one size and then resizing to the saved size but I haven't figured out how to fix that yet. At the very least this prevents qtshark's default geometry from being saved to my recent file and affecting wireshark-gtk's geometry. Change-Id: I47b66078a9d00cb321badc744f1337ff39ca42a7 Reviewed-on: https://code.wireshark.org/review/4177 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'ui/qt/main.cpp')
-rw-r--r--ui/qt/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
index 3603e7e895..7281105bc0 100644
--- a/ui/qt/main.cpp
+++ b/ui/qt/main.cpp
@@ -817,6 +817,7 @@ int main(int argc, char *argv[])
"Could not open recent file\n\"%s\": %s.",
rf_path, g_strerror(rf_open_errno));
}
+ wsApp->emitAppSignal(WiresharkApplication::StaticRecentFilesRead);
if (recent.gui_fileopen_remembered_dir &&
test_for_directory(recent.gui_fileopen_remembered_dir) == EISDIR) {