Skip to content

Commit 5018791

Browse files
boutinbJorisGoosen
authored andcommitted
Save menu should not be enabled as long as the current file os not a JASP file
Fixes jasp-stats/INTERNAL-jasp#2944
1 parent 65805d1 commit 5018791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Desktop/widgets/filemenu/filemenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ void FileMenu::analysisAdded(Analysis *analysis)
377377

378378
void FileMenu::workspaceModified()
379379
{
380-
if(DataSetPackage::pkg()->isLoaded() && !DataSetPackage::pkg()->dataFileReadOnly())
380+
if(DataSetPackage::pkg()->isLoaded() && !DataSetPackage::pkg()->dataFileReadOnly() && getCurrentFileType() == Utils::FileType::jasp)
381381
_actionButtons->setEnabled(ActionButtons::Save, DataSetPackage::pkg()->isModified());
382382
}
383383

0 commit comments

Comments
 (0)