Changeset b96b44b6b7 in tspsg


Ignore:
Timestamp:
Oct 13, 2012, 9:12:59 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
4cc94b19ad
Parents:
47c811cc09
Message:

A small tweak to override cursors...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    r47c811cc09 rb96b44b6b7  
    408408            imgdata = generateImage(format);
    409409            if (imgdata.isEmpty()) {
     410                QApplication::restoreOverrideCursor();
    410411                return;
    411412            }
     
    14171418            pic.setQuality(80);
    14181419        if (!pic.write(i)) {
     1420            QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor));
     1421            QMessageBox::critical(this, tr("Solution Save"), tr("Unable to save the solution graph.\nError: %1").arg(pic.errorString()));
    14191422            QApplication::restoreOverrideCursor();
    1420             QMessageBox::critical(this, tr("Solution Save"), tr("Unable to save the solution graph.\nError: %1").arg(pic.errorString()));
    14211423            return QByteArray();
    14221424        }
Note: See TracChangeset for help on using the changeset viewer.