User Dialog Message to the export resaults

This commit is contained in:
Sagi Dayan 2014-09-07 23:14:04 +03:00
parent 11b4101c58
commit af10a074c0

View file

@ -294,5 +294,17 @@ void MainScreen::on_actionHow_To_triggered()
void MainScreen::on_pushButton_2_clicked() void MainScreen::on_pushButton_2_clicked()
{ {
CSV_Exporter::exportCalendar(this->calendar->getSch()); if(CSV_Exporter::exportCalendar(this->calendar->getSch()))
{
QMessageBox msgBox;
msgBox.setText("<center>Exported Successfuly!<br><b>HaazZaA!!");
msgBox.exec();
}else
{
QMessageBox msgBox;
msgBox.setIcon(QMessageBox::Critical);
msgBox.setText("<center>Something went wrong...<br></center>Maybe: <ul><li>You Canceled</li><li>Unable to save the File - try again</li></ul><br><br>"
"<b><center>In case of a serious problem, please file a bug report.<br>thank you. OpenJCE teem");
msgBox.exec();
}
} }