Commit 6cac3b73 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

DiffEditor: Add indication on failure

Task-number: QTCREATORBUG-15051
Change-Id: If8beef268fa6390f2ff8f36996354f9685b70d80
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 7adb56af
......@@ -131,9 +131,11 @@ void UnifiedView::setDiff(const QList<FileData> &diffFileList, const QString &wo
void UnifiedView::endOperation(bool success)
{
Q_UNUSED(success);
QTC_ASSERT(m_widget, return);
m_widget->restoreState();
if (success)
m_widget->restoreState();
else
m_widget->clear(tr("Failed"));
}
void UnifiedView::setCurrentDiffFileIndex(int index)
......@@ -194,9 +196,11 @@ void SideBySideView::setDiff(const QList<FileData> &diffFileList, const QString
void SideBySideView::endOperation(bool success)
{
Q_UNUSED(success);
QTC_ASSERT(m_widget, return);
m_widget->restoreState();
if (success)
m_widget->restoreState();
else
m_widget->clear(tr("Failed"));
}
void SideBySideView::setSync(bool sync)
......
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