Fix logic in server table widget

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-05-10 20:30:05 +08:00
parent ff107ec3d7
commit 5b119a59d7
+11 -11
View File
@@ -957,20 +957,20 @@ class UserServersQTableWidget(QTranslatable, AppQTableWidget):
modified = editor.inputToFactory(factory)
if modified:
self.flushRow(index, factory)
# Still flush to row since remark may be modified
self.flushRow(index, factory)
if index == AS_UserActivatedItemIndex():
try:
if APP().isSystemTrayConnected():
mbox = NewChangesNextTimeMBox()
if modified and index == AS_UserActivatedItemIndex():
try:
if APP().isSystemTrayConnected():
mbox = NewChangesNextTimeMBox()
# Show the MessageBox asynchronously
mbox.open()
except Exception:
# Any non-exit exceptions
# Show the MessageBox asynchronously
mbox.open()
except Exception:
# Any non-exit exceptions
pass
pass
editor.accepted.disconnect()