No need to reset the autoReloadId based on enabling autoreload. The id is kept up-to-date anyway

felipesanches-svg
Marius Kintel 2013-06-06 00:44:47 -04:00
parent b711e62075
commit 1927f21317
1 changed files with 1 additions and 2 deletions

View File

@ -1060,7 +1060,7 @@ bool MainWindow::compileTopLevelDocument(bool reload)
}
if (reload) {
// Refresh files if it has changed on disk
// Refresh file if it has changed on disk
if (fileChangedOnDisk() && checkEditorModified()) {
shouldcompiletoplevel = true;
refreshDocument();
@ -1123,7 +1123,6 @@ void MainWindow::autoReloadSet(bool on)
QSettings settings;
settings.setValue("design/autoReload",designActionAutoReload->isChecked());
if (on) {
autoReloadId = "";
autoReloadTimer->start(200);
} else {
autoReloadTimer->stop();