X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=main.py;fp=main.py;h=5bb8f7d60cd0901d56e114c3b7ab2915f5008c89;hb=d13fa65a92f9782c6505aa12b18e93cc0747ce64;hp=5018484f45e10f8d8b1d224d37784aa9bbcc79d4;hpb=39b7e1e9a1d3e90acae7d9a300b849f5f9a202d8;p=retroconv diff --git a/main.py b/main.py index 5018484..5bb8f7d 100644 --- a/main.py +++ b/main.py @@ -165,13 +165,21 @@ def showInboxDialog(): if not msgs.hasImportedInbox() : inboxDialog.open() else: - print "Inbox is already Imported" + res = QMessageBox.question(mainWindow, "Retro Conversations", + "This will overwrite previously imported Inbox SMS. Proceed?", QMessageBox.Yes | QMessageBox.No); + + if res == QMessageBox.Yes: + inboxDialog.open() def showSentDialog(): if not msgs.hasImportedSent(): sentDialog.open() else: - print "Sent is already Imported" + res = QMessageBox.question(mainWindow, "Retro Conversations", + "This will overwrite previously imported Sent SMS. Proceed?", QMessageBox.Yes | QMessageBox.No); + + if res == QMessageBox.Yes: + sentDialog.open() if __name__ == '__main__': app = QApplication(sys.argv)