Disable interface for operations that takes a long time

This commit is contained in:
2012-05-12 18:06:15 +02:00
parent 434f1707c7
commit 102daf9a96
4 changed files with 25 additions and 5 deletions

View File

@@ -378,6 +378,10 @@ void ImportPanel::OnIntegrate()
_buttonIntegrate->setEnabled(false);
_kiss->setOverrideCursor(QCursor(Qt::WaitCursor));
_wxUI->setEnabled(false);
_wxUI->repaint();
for(i=0; i<(int)_operations->size(); i++)
{
oldid = (*_operations)[i].id;
@@ -423,6 +427,9 @@ void ImportPanel::OnIntegrate()
_operations->clear();
_operationsGrid->ClearGrid();
_wxUI->setEnabled(true);
_kiss->setOverrideCursor(QCursor(Qt::ArrowCursor));
QMessageBox::information(0, "KissCount", _("Operations successfully imported"));
_wxUI->NeedReload();