Disable interface for operations that takes a long time
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user