From af10a074c08e3351e7f536454abb615caf9e480c Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 7 Sep 2014 23:14:04 +0300 Subject: [PATCH] User Dialog Message to the export resaults --- main/mainscreen.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/main/mainscreen.cpp b/main/mainscreen.cpp index 8e4bca3..b7f4d6b 100644 --- a/main/mainscreen.cpp +++ b/main/mainscreen.cpp @@ -294,5 +294,17 @@ void MainScreen::on_actionHow_To_triggered() void MainScreen::on_pushButton_2_clicked() { - CSV_Exporter::exportCalendar(this->calendar->getSch()); + if(CSV_Exporter::exportCalendar(this->calendar->getSch())) + { + QMessageBox msgBox; + msgBox.setText("
Exported Successfuly!
HaazZaA!!"); + msgBox.exec(); + }else + { + QMessageBox msgBox; + msgBox.setIcon(QMessageBox::Critical); + msgBox.setText("
Something went wrong...
Maybe:
  • You Canceled
  • Unable to save the File - try again


" + "
In case of a serious problem, please file a bug report.
thank you. OpenJCE teem"); + msgBox.exec(); + } }