diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-10-30 22:39:52 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-10-30 22:39:52 +0000 |
commit | 9075922f42fb9a7c4209c96e21b9f9f7ab9c2bbd (patch) | |
tree | ba7b5e2109ca3bff1f169876f51857fa321480e7 /ui/qt/wireshark_application.h | |
parent | b84fee4fc7b96b9ccc39c1ce91fb553c7913da8d (diff) |
Add initial support for geometry settings in the main window.
In the current Qt startup sequence the main window + splash screen is
displayed before the main preferences are loaded which means we can't
immediately apply the correct geometry. For now, use an animation to
morph from the default to the saved geometry after the prefs are loaded.
Get rid of main_do_quit() (Qt) and main_window_exit() (Qt+GTK). It looks
like they were unused.
Add wsApp->isInitialized() and use it to see if we should exit() when
the main window is closed. Otherwise we won't shut the application down
and clean up properly.
svn path=/trunk/; revision=52988
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index ac4cac8d3e..1e2cb3de9c 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -85,6 +85,7 @@ public: void setMonospaceFont(const char *font_string); int monospaceTextSize(const char *str, bool bold = false); void setConfigurationProfile(const gchar *profile_name); + bool isInitialized() { return initialized_; } private: void prefsToCaptureOpts(); |