Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b1226a

Browse files
committed
only save cpp docs before sourcing if they are dirty
1 parent 42017b0 commit 0b1226a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/TextEditingTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,7 @@ public void execute()
20082008
}
20092009
};
20102010

2011-
if (isCpp)
2011+
if (isCpp && dirtyState_.getValue())
20122012
saveThenExecute(null, sourceCommand);
20132013
else
20142014
sourceCommand.execute();

0 commit comments

Comments
 (0)