Change the cursor to a wait cursor when applying settings in the settings dialog.

--HG--
branch : hotfix
This commit is contained in:
dfighter1985 2015-02-09 19:55:27 +01:00
parent 44c6f93b26
commit 28b0a0a040

View file

@ -145,11 +145,17 @@ void SettingsDialog::pageSelected()
void SettingsDialog::accept()
{
m_applied = true;
setCursor( Qt::WaitCursor );
Q_FOREACH(IOptionsPage *page, m_pages)
{
page->apply();
page->finish();
}
setCursor( Qt::ArrowCursor );
done(QDialog::Accepted);
}
@ -162,8 +168,13 @@ void SettingsDialog::reject()
void SettingsDialog::apply()
{
setCursor( Qt::WaitCursor );
Q_FOREACH(IOptionsPage *page, m_pages)
page->apply();
setCursor( Qt::ArrowCursor );
m_applied = true;
}