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:
parent
ad94c4d459
commit
97a19960a1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue