summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-06-06 04:44:47 (GMT)
committerMarius Kintel <marius@kintel.net>2013-06-06 04:44:47 (GMT)
commit1927f2131767ff00d07098d57d60f92526a6128b (patch)
treeb185b9de4e4f12c90bd0a4ba9722590ce7908788 /src/mainwin.cc
parentb711e6207555c6536e9fc30d09ce01e9f82bfb86 (diff)
No need to reset the autoReloadId based on enabling autoreload. The id is kept up-to-date anyway
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 7099053..0c67da4 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -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();
contact: Jan Huwald // Impressum