Skip to content

Commit

Permalink
[MLV] Filter out empty entrys in preferences history
Browse files Browse the repository at this point in the history
  • Loading branch information
Sobottasgithub committed Jan 15, 2024
1 parent 51106c4 commit 484d7ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LogViewer/ui/preferences_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def _createUiTab_history(self):
deletableQListWidget = DeletableQListWidget()
deletableQListWidget.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)
for item in SettingsSingleton().getComboboxHistoryByName(combobox):
deletableQListWidget.addItem(QtWidgets.QListWidgetItem(item))
if item.strip() != "":
deletableQListWidget.addItem(QtWidgets.QListWidgetItem(item))

addSection = QtWidgets.QHBoxLayout()
lineEdit = QtWidgets.QLineEdit()
Expand Down

0 comments on commit 484d7ef

Please sign in to comment.