prepare for packaging
[retroconv] / main.py
diff --git a/main.py b/main.py
index 5018484..5bb8f7d 100644 (file)
--- 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)