diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-03-22 10:52:16 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2017-03-23 09:04:12 +0000 |
commit | 12241beea2ffa2fda901c17d9f114e3ed3b3f9c3 (patch) | |
tree | 9cacc47dad9d59155421114e6206eaae480d28b2 /wireshark-qt.cpp | |
parent | bb017f3eb30804645a84ccc4cd071fac44d0a326 (diff) |
Qt: Register Qt dialog UAT files during startup
All files which belongs in a configuration profile are registered
during startup because they affect copy existing profiles and
reset the default profile.
UAT files used in Qt dialogs are not loaded during startup because
they only get loaded when the dialog is shown. This files must be
manually registered.
Change-Id: Ib43f5c46b0dbde6994d90512708488cc2bd92f04
Reviewed-on: https://code.wireshark.org/review/20665
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r-- | wireshark-qt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index 5ad28c59e9..1f92a5de7b 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -920,6 +920,11 @@ int main(int argc, char *qt_argv[]) } #endif /* HAVE_LIBPCAP */ + // UAT files used in configuration profiles which are used in Qt dialogs + // are not registered during startup because they only get loaded when + // the dialog is shown. Register them here. + g_free(get_persconffile_path("io_graphs", TRUE)); + profile_store_persconffiles(FALSE); ret_val = wsApp->exec(); |