Skip to content

Commit 0a815ef

Browse files
committed
fixed a bug with adding a bookmark.
1 parent 95da7bd commit 0a815ef

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ui/quran_interface.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,13 @@ def OnSaveBookmark(self, event):
337337

338338
if bookmark_manager.is_exist(aya_info[1]):
339339
msgBox = QMessageBox(self)
340-
msgBox.setIcon(QMessageBox.Critical)
341-
msgBox.setWindowTitle("خطأ")
342-
msgBox.setText("تم حفظ العلامة المرجعية مسبقًا.")
340+
msgBox.setIcon(QMessageBox.Critical)
341+
msgBox.setWindowTitle("خطأ")
342+
msgBox.setText("تم حفظ العلامة المرجعية مسبقًا.")
343+
msgBox.addButton("موافق", QMessageBox.AcceptRole)
344+
msgBox.exec()
343345

344-
345-
msgBox.addButton("موافق", QMessageBox.AcceptRole)
346-
msgBox.exec()
347-
348-
return
346+
return
349347

350348

351349
dialog = QInputDialog(self)

0 commit comments

Comments
 (0)