Commit d1ddcf8d authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Dont override the cursor for whole application when building

parent 97d14029
...@@ -773,7 +773,8 @@ bool KateBuildView::startProcess(const QString &dir, const QString &command) ...@@ -773,7 +773,8 @@ bool KateBuildView::startProcess(const QString &dir, const QString &command)
m_buildUi.buildAgainButton->setEnabled(false); m_buildUi.buildAgainButton->setEnabled(false);
m_buildUi.buildAgainButton2->setEnabled(false); m_buildUi.buildAgainButton2->setEnabled(false);
QApplication::setOverrideCursor(QCursor(Qt::BusyCursor)); m_targetsUi->setCursor(Qt::BusyCursor);
return true; return true;
} }
...@@ -930,7 +931,7 @@ void KateBuildView::displayMessage(const QString &msg, KTextEditor::Message::Mes ...@@ -930,7 +931,7 @@ void KateBuildView::displayMessage(const QString &msg, KTextEditor::Message::Mes
/******************************************************************/ /******************************************************************/
void KateBuildView::slotProcExited(int exitCode, QProcess::ExitStatus) void KateBuildView::slotProcExited(int exitCode, QProcess::ExitStatus)
{ {
QApplication::restoreOverrideCursor(); m_targetsUi->unsetCursor();
m_buildUi.cancelBuildButton->setEnabled(false); m_buildUi.cancelBuildButton->setEnabled(false);
m_buildUi.cancelBuildButton2->setEnabled(false); m_buildUi.cancelBuildButton2->setEnabled(false);
m_buildUi.buildAgainButton->setEnabled(true); m_buildUi.buildAgainButton->setEnabled(true);
......
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