Refactoring. Removed unneeded method.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-02-01 21:58:11 +02:00
parent 9e9689e16a
commit e67b6b5805
2 changed files with 2 additions and 18 deletions

View file

@ -480,19 +480,6 @@ bool MainWindow::UpdateMeasurements(const QString &path, int size, int height)
return true;
}
//---------------------------------------------------------------------------------------------------------------------
void MainWindow::ToggleMSync(bool toggle)
{
if (mChanges)
{
ui->actionSyncMeasurements->setEnabled(toggle);
}
else
{
ui->actionSyncMeasurements->setEnabled(false);
}
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief OptionDraw help change name of pattern piece.
@ -1389,7 +1376,7 @@ void MainWindow::MeasurementsChanged(const QString &path)
}
UpdateWindowTitle();
ToggleMSync(true);
ui->actionSyncMeasurements->setEnabled(mChanges);
}
//---------------------------------------------------------------------------------------------------------------------
@ -1411,14 +1398,13 @@ void MainWindow::SyncMeasurements()
doc->LiteParseTree(Document::LiteParse);
mChanges = false;
UpdateWindowTitle();
ui->actionSyncMeasurements->setEnabled(mChanges);
}
else
{
qCWarning(vMainWindow, "%s", qUtf8Printable(tr("Couldn't sync measurements.")));
}
}
ToggleMSync(false);
}
//---------------------------------------------------------------------------------------------------------------------

View file

@ -316,8 +316,6 @@ private:
bool LoadMeasurements(const QString &path);
bool UpdateMeasurements(const QString &path, int size, int height);
void ToggleMSync(bool toggle);
void ReopenFilesAfterCrash(QStringList &args);
void DoExport(const VCommandLinePtr& expParams);