Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Ctrl+s shortcut type a 's' when the file has been saved before #20

Open
rapenne-s opened this issue Jan 9, 2015 · 1 comment
Open

Comments

@rapenne-s
Copy link

When you use the shortcut 'ctrl+s' and the document has been saved and has not been modified since, a s is typed. This is pretty annoying because I'm saving a lot, even when not necessary and I find some 's' in my document after.

@rapenne-s
Copy link
Author

Here is an ugly patch which allow to spam ctrl+s ! :D

diff --git a/dist/ubuntu/debian/files b/dist/ubuntu/debian/files
deleted file mode 100644
index 59791f8..0000000
--- a/dist/ubuntu/debian/files
+++ /dev/null
@@ -1 +0,0 @@
-mdcharm_1.2_amd64.deb utils optional
diff --git a/src/MdCharm/mdcharmform.cpp b/src/MdCharm/mdcharmform.cpp
index 1ee92eb..cdbfeab 100644
--- a/src/MdCharm/mdcharmform.cpp
+++ b/src/MdCharm/mdcharmform.cpp
@@ -706,7 +706,7 @@ void MdCharmForm::updateActions()
undoAction->setEnabled(editArea->isUndoAvailable());
redoAction->setEnabled(editArea->isRedoAvailable());
saveAsAction->setEnabled(editArea->isEditActionOptionEnabled(EditAreaWidget::AllowSaveAs));

  • saveAction->setEnabled(editArea->isModified());
  • saveAction->setEnabled(true);
    exportAction->setEnabled( editArea->isEditActionOptionEnabled(EditAreaWidget::AllowExportToHtml) ||
    editArea->isEditActionOptionEnabled(EditAreaWidget::AllowExportToODT) ||
    editArea->isEditActionOptionEnabled(EditAreaWidget::AllowExportToPdf));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant