Commit f1b9ba7c authored by Halla Rempt's avatar Halla Rempt

Disable the Reload File action

This doesn't work in 2.9: it's very, very tricky to reload the file
without closing the document, to close the document, load a new document
and set the new document on all the existing views, or close all views
and recreate them correctly.

CCBUG:342849
parent 6ff238b2
......@@ -169,7 +169,7 @@ public:
, printActionPreview(0)
, exportPdf(0)
, closeAll(0)
, reloadFile(0)
// , reloadFile(0)
, importFile(0)
, exportFile(0)
, undo(0)
......@@ -225,7 +225,7 @@ public:
KisAction *printActionPreview;
KisAction *exportPdf;
KisAction *closeAll;
KisAction *reloadFile;
// KisAction *reloadFile;
KisAction *importFile;
KisAction *exportFile;
KisAction *undo;
......@@ -537,7 +537,7 @@ void KisMainWindow::slotPreferences()
void KisMainWindow::updateReloadFileAction(KisDocument *doc)
{
d->reloadFile->setEnabled(doc && !doc->url().isEmpty());
// d->reloadFile->setEnabled(doc && !doc->url().isEmpty());
}
void KisMainWindow::setReadWrite(bool readwrite)
......@@ -2048,10 +2048,10 @@ void KisMainWindow::createActions()
actionManager->addAction("file_close_all", d->closeAll);
connect(d->closeAll, SIGNAL(triggered()), this, SLOT(slotFileCloseAll()));
d->reloadFile = new KisAction(i18nc("@action:inmenu", "Reload"));
d->reloadFile->setActivationFlags(KisAction::CURRENT_IMAGE_MODIFIED);
actionManager->addAction("file_reload_file", d->reloadFile);
connect(d->reloadFile, SIGNAL(triggered(bool)), this, SLOT(slotReloadFile()));
// d->reloadFile = new KisAction(i18nc("@action:inmenu", "Reload"));
// d->reloadFile->setActivationFlags(KisAction::CURRENT_IMAGE_MODIFIED);
// actionManager->addAction("file_reload_file", d->reloadFile);
// connect(d->reloadFile, SIGNAL(triggered(bool)), this, SLOT(slotReloadFile()));
d->importFile = new KisAction(koIcon("document-import"), i18nc("@action:inmenu", "Open ex&isting Document as Untitled Document..."));
actionManager->addAction("file_import_file", d->importFile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment