diff options
author | Roland Knall <rknall@gmail.com> | 2019-08-26 11:12:07 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2019-08-26 15:45:36 +0000 |
commit | 2729a8935351417649f3d27f94ab2e38d8080cef (patch) | |
tree | 104f2af2ab7a03c43ca976d2984c9c45d05d354e /ui | |
parent | 141e3e0155857b36bc469710bd96b6b5d89ab1c6 (diff) |
Qt: Fix copy from default profile
The default profile was available to be selected, even if it
was the active profile.
Bug: 16021
Change-Id: If08a563f243f18f32e17cb2169180ec0b1274a9a
Reviewed-on: https://code.wireshark.org/review/34366
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/models/profile_model.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/models/profile_model.cpp b/ui/qt/models/profile_model.cpp index 979f0ae38b..faac93866a 100644 --- a/ui/qt/models/profile_model.cpp +++ b/ui/qt/models/profile_model.cpp @@ -887,7 +887,7 @@ QModelIndex ProfileModel::activeProfile() const if ( prof->is_global || checkDuplicate(index(row, ProfileModel::COL_NAME) ) ) return QModelIndex(); - if ( ( set_profile_.compare(prof->name) == 0 && prof->status == PROF_STAT_EXISTS ) || + if ( ( set_profile_.compare(prof->name) == 0 && ( prof->status == PROF_STAT_EXISTS || prof->status == PROF_STAT_DEFAULT ) ) || ( set_profile_.compare(prof->reference) == 0 && prof->status == PROF_STAT_CHANGED ) ) return index(row, ProfileModel::COL_NAME); } |