diff options
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtHighlightEditor.cpp | 2 | ||||
-rw-r--r-- | Swift/QtUI/QtHighlightEditor.ui | 13 |
2 files changed, 1 insertions, 14 deletions
diff --git a/Swift/QtUI/QtHighlightEditor.cpp b/Swift/QtUI/QtHighlightEditor.cpp index 8a27a09..e636b57 100644 --- a/Swift/QtUI/QtHighlightEditor.cpp +++ b/Swift/QtUI/QtHighlightEditor.cpp @@ -197,7 +197,7 @@ void QtHighlightEditor::onNewButtonClicked() void QtHighlightEditor::onDeleteButtonClicked() { int selectedRow = getSelectedRow(); - if (selectedRow == -1) { + if (selectedRow != -1) { delete ui_.listWidget->takeItem(selectedRow); highlightManager_->removeRule(selectedRow); } diff --git a/Swift/QtUI/QtHighlightEditor.ui b/Swift/QtUI/QtHighlightEditor.ui index 0de6ba5..76ccf05 100644 --- a/Swift/QtUI/QtHighlightEditor.ui +++ b/Swift/QtUI/QtHighlightEditor.ui @@ -435,19 +435,6 @@ p, li { white-space: pre-wrap; } </layout> </widget> </item> - <item> - <spacer name="verticalSpacer_2"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>268</width> - <height>22</height> - </size> - </property> - </spacer> - </item> </layout> </item> </layout> |