Commit f0680840 authored by Tobias Hunger's avatar Tobias Hunger

Do not override mouse cursor needlessly

Task-number: QTCREATORBUG-3822
parent 3d02e402
......@@ -138,12 +138,10 @@ bool SessionFile::load(const QString &fileName)
// NPE: Load the session in the background?
// NPE: Let FileManager monitor filename
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
PersistentSettingsReader reader;
if (!reader.load(m_fileName)) {
qWarning() << "SessionManager::load failed!" << fileName;
QApplication::restoreOverrideCursor();
return false;
}
......@@ -216,7 +214,6 @@ bool SessionFile::load(const QString &fileName)
future.reportFinished();
QApplication::restoreOverrideCursor();
return true;
}
......
......@@ -61,13 +61,10 @@ ProjectLoadWizard::ProjectLoadWizard(Qt4Project *project, QWidget *parent, Qt::W
// We used to simply call ::exec() on the dialog
void ProjectLoadWizard::execDialog()
{
if (!pageIds().isEmpty()) {
QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor));
if (!pageIds().isEmpty())
exec();
QApplication::restoreOverrideCursor();
} else {
else
done(QDialog::Accepted);
}
}
ProjectLoadWizard::~ProjectLoadWizard()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment