diff options
author | Roland Knall <rknall@gmail.com> | 2019-08-04 16:01:16 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2019-08-04 21:40:55 +0000 |
commit | a2b45863764faad0dd50e034a0f66d363240673c (patch) | |
tree | af34a082460d276887223568628e10b0814db46a /ui | |
parent | 072fecbbd4ca06edec73c668f28119fc8af8b6ff (diff) |
Qt: Guard no minizip build
Change-Id: Ib0e4f8343d4acbdde956e35ac37dcf6a2937421f
Reviewed-on: https://code.wireshark.org/review/34181
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/profile_dialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/qt/profile_dialog.cpp b/ui/qt/profile_dialog.cpp index 13cb0bba64..7b54e83579 100644 --- a/ui/qt/profile_dialog.cpp +++ b/ui/qt/profile_dialog.cpp @@ -216,7 +216,6 @@ void ProfileDialog::updateWidgets() bool enable_del = true; bool enable_ok = true; bool multiple = false; - bool contains_user = false; bool enable_import = true; int user_profiles = 0; @@ -238,8 +237,6 @@ void ProfileDialog::updateWidgets() if ( ! profiles[cnt].data(ProfileModel::DATA_IS_GLOBAL).toBool() && ! profiles[cnt].data(ProfileModel::DATA_IS_DEFAULT).toBool() ) user_profiles++; } - if ( user_profiles > 0 ) - contains_user = true; if ( model_->changesPending() ) { enable_import = false; @@ -254,8 +251,12 @@ void ProfileDialog::updateWidgets() import_button_->setEnabled( enable_import ); #ifdef HAVE_MINIZIP + bool contains_user = false; bool enable_export = false; + if ( user_profiles > 0 ) + contains_user = true; + /* enable export if no changes are pending */ if ( ! model_->changesPending() ) enable_export = true; |