Warn user when some operation dates are modified due to month restriction
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
#include "GenerateDialog.hpp"
|
||||
#include <QLabel>
|
||||
#include <QMessageBox>
|
||||
|
||||
GenerateDialog::GenerateDialog(KissCount* kiss, wxUI *parent, int month, int year) : QDialog(0, Qt::Dialog), _kiss(kiss), _wxUI(parent)
|
||||
{
|
||||
@@ -210,7 +211,9 @@ void GenerateDialog::OnOK()
|
||||
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
close();
|
||||
_kiss->GenerateMonth(monthFrom, yearFrom, monthTo, yearTo);
|
||||
if (_kiss->GenerateMonth(monthFrom, yearFrom, monthTo, yearTo))
|
||||
QMessageBox::warning(0, _("Warning"), _("Some operations date has been updated"));
|
||||
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user