@@ -190,6 +190,11 @@ Window::Window(QWidget* parent)
190190 });
191191 this ->addDirAction ->setDisabled (true );
192192
193+ this ->markModifiedAction = editMenu->addAction (this ->style ()->standardIcon (QStyle::SP_BrowserReload), tr (" Mark Modified" ), Qt::CTRL | Qt::Key_M, [this ] {
194+ this ->markModified (true );
195+ });
196+ this ->markModifiedAction ->setDisabled (true );
197+
193198 editMenu->addSeparator ();
194199 this ->setPropertiesAction = editMenu->addAction (this ->style ()->standardIcon (QStyle::SP_FileDialogContentsView), tr (" Properties..." ), Qt::CTRL | Qt::Key_P, [this ] {
195200 this ->setProperties ();
@@ -1386,6 +1391,7 @@ void Window::freezeActions(bool freeze, bool freezeCreationActions, bool freezeF
13861391 this ->extractAllAction ->setDisabled (freeze);
13871392 this ->addFileAction ->setDisabled (freeze);
13881393 this ->addDirAction ->setDisabled (freeze);
1394+ this ->markModifiedAction ->setDisabled (freeze);
13891395 this ->setPropertiesAction ->setDisabled (freeze);
13901396 this ->toolsGeneralMenu ->setDisabled (freeze);
13911397 this ->toolsVPKMenu ->setDisabled (freeze || (!this ->packFile || !this ->packFile ->isInstanceOf <VPK>()));
@@ -1401,6 +1407,7 @@ void Window::freezeModifyActions(bool readOnly) const {
14011407 this ->saveAsAction ->setDisabled (readOnly);
14021408 this ->addFileAction ->setDisabled (readOnly);
14031409 this ->addDirAction ->setDisabled (readOnly);
1410+ this ->markModifiedAction ->setDisabled (readOnly);
14041411 this ->setPropertiesAction ->setDisabled (readOnly);
14051412 }
14061413}
0 commit comments