rm backup
[retroconv] / main.py
diff --git a/main.py b/main.py
index 5018484..46a7a6b 100644 (file)
--- a/main.py
+++ b/main.py
@@ -104,15 +104,15 @@ def init():
         #QObject.connect(ui.sent_msg_back, SIGNAL("clicked()"),showSentMessages)
         #QObject.connect(ui.sentView, SIGNAL("clicked(QModelIndex)"),showSentMsg)
         
-        ############################################################
+        ###########################################################
         
-        ############################################################
+        ###########################################################
         
         
         
-        ############################################################
+        ###########################################################
         
-        ################# Other Init functions #####################
+        ################ Other Init functions #####################
         
         
         fetch = False
@@ -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)