summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2012-04-23 23:17:21 (GMT)
committerClifford Wolf <clifford@clifford.at>2012-04-23 23:17:21 (GMT)
commita718c4a59dd251dd4c2cf8fca1ae6a5ebe1ad990 (patch)
treeb5812d3753058feb93b2bd3f1f95da1f8aef65f5 /src/mainwin.cc
parentdde401cadb499b272c1a2fe992e48c354bc5e5cf (diff)
Some trivial fixes for compiler warnings
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 90e5f61..087cb30 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -1037,8 +1037,7 @@ bool MainWindow::compileTopLevelDocument(bool reload)
{
bool shouldcompiletoplevel = !reload;
- if (reload &&
- (fileChangedOnDisk() && checkEditorModified()) ||
+ if ((reload && fileChangedOnDisk() && checkEditorModified()) ||
includesChanged()) {
shouldcompiletoplevel = true;
refreshDocument();
contact: Jan Huwald // Impressum