Commit e105eb1c authored by Urs Fleisch's avatar Urs Fleisch
Browse files

KDE: Preserve editing state when changing file using Pg-Up, Down.

This was implemented in commit 5d5d77, but not for the KDE GUI.
parent 0f007419
......@@ -286,7 +286,7 @@ void KdeMainWindow::initActions()
editPreviousFile->setShortcut(KShortcut(QLatin1String("Alt+Up")));
#endif
actionCollection()->addAction(QLatin1String("previous_file"), editPreviousFile);
connect(editPreviousFile, SIGNAL(triggered()), app(), SLOT(previousFile()));
connect(editPreviousFile, SIGNAL(triggered()), form(), SLOT(previousFile()));
KAction* editNextFile = new KAction(KIcon(QLatin1String("go-next")), tr("&Next File"), this);
editNextFile->setStatusTip(tr("Select next file"));
#if QT_VERSION >= 0x050000
......@@ -296,7 +296,7 @@ void KdeMainWindow::initActions()
editNextFile->setShortcut(KShortcut(QLatin1String("Alt+Down")));
#endif
actionCollection()->addAction(QLatin1String("next_file"), editNextFile);
connect(editNextFile, SIGNAL(triggered()), app(), SLOT(nextFile()));
connect(editNextFile, SIGNAL(triggered()), form(), SLOT(nextFile()));
KAction* actionV1FromFilename = new KAction(tr("Tag 1") + QLatin1String(": ") + tr("From Filename"), this);
actionCollection()->addAction(QLatin1String("v1_from_filename"), actionV1FromFilename);
connect(actionV1FromFilename, SIGNAL(triggered()), app(), SLOT(getTagsFromFilenameV1()));
......
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