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>
This commit is contained in:
Roland Knall 2019-08-20 13:05:49 +02:00
parent ad94c4d459
commit 97a19960a1
1 changed files with 1 additions and 1 deletions

View File

@ -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();