diff options
author | Roland Knall <rknall@gmail.com> | 2019-08-20 13:05:49 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2019-08-20 14:31:09 +0000 |
commit | 97a19960a18fa3d190d0ce22141a0c4ec0f1923e (patch) | |
tree | 859fb9e291e7c9b3bd0cb3dffba58405fa6e94a0 /ui | |
parent | ad94c4d459d243c0cbbb9b222d5f7cdf8189ab86 (diff) |
Qt: Allow deletion of personal system-profile
If a profile is being deleted, but a system profile with the same
name exists, the dialog cannot be closed
Change-Id: I2fbaa999617203816e21a8e4486abaf368b69919
Reviewed-on: https://code.wireshark.org/review/34331
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/profile_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/profile_dialog.cpp b/ui/qt/profile_dialog.cpp index 3d82068a40..5076503429 100644 --- a/ui/qt/profile_dialog.cpp +++ b/ui/qt/profile_dialog.cpp @@ -341,7 +341,7 @@ void ProfileDialog::updateWidgets() continue; } - if ( model_->checkInvalid(idx) || model_->checkIfDeleted(idx) ) + if ( model_->checkInvalid(idx) || ( ! idx.data(ProfileModel::DATA_IS_GLOBAL).toBool() && model_->checkIfDeleted(idx) ) ) { if ( idx == index ) hintUrl.clear(); |