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>
This commit is contained in:
Jeff Morriss 2014-09-18 16:19:33 -04:00 committed by Evan Huus
parent 845e5e5c98
commit 2cd9784f10

View File

@ -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) {