QObject.connect(inboxWindow.listView, SIGNAL("clicked(QModelIndex)"),showMsg)
QObject.connect(sentWindow.listView, SIGNAL("clicked(QModelIndex)"),showSentMsg)
QObject.connect(mainWindow.actionImport, SIGNAL("triggered()"),showInboxDialog)
- QObject.connect(mainWindow.actionImport_sent, SIGNAL("triggered()"),showSentDialog)
+ QObject.connect(mainWindow.actionImport_Sent, SIGNAL("triggered()"),showSentDialog)
QObject.connect(inboxDialog, SIGNAL("fileSelected(QString)"), importInbox)
QObject.connect(sentDialog, SIGNAL("fileSelected(QString)"), importSent)
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)