#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
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)