Skip to content

Commit

Permalink
check for shortcut duplictaes in basic editor and general menu shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Aug 20, 2024
1 parent efb565a commit 2018aa9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/configdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,11 @@ void ShortcutDelegate::setModelData(QWidget *editor, QAbstractItemModel *model,
QTreeWidgetItem *item=li.at(k);
QString id = item->data(0, Qt::UserRole).toString();
QStringList ids=id.split("/");
if(ids.value(0,"")!=progType)
li.removeAll(item);
if(ids.value(0,"")!=progType){
if(progType=="pdf" || ids.value(0,"")=="pdf"){
li.removeAll(item);
}
}
}
REQUIRE(treeWidget->topLevelItem(1));
REQUIRE(treeWidget->topLevelItem(1)->childCount() >= 1);
Expand Down

0 comments on commit 2018aa9

Please sign in to comment.