diff --git a/doc/index.docbook b/doc/index.docbook --- a/doc/index.docbook +++ b/doc/index.docbook @@ -217,12 +217,6 @@ Additionally, if you click the arrow on the right side of the button, a drop-down menu allows you to simply Save the image, save the image with a different filename, location and format (Save As...), Print the image, and configure the default Preferences, such as application preferences and where to save the image by default and what filename to save it as. - - Discard - - Discards the screenshot and immediately exits the application. - - diff --git a/src/Gui/KSMainWindow.cpp b/src/Gui/KSMainWindow.cpp --- a/src/Gui/KSMainWindow.cpp +++ b/src/Gui/KSMainWindow.cpp @@ -123,7 +123,7 @@ // the Button Bar - mDialogButtonBox->setStandardButtons(QDialogButtonBox::Help | QDialogButtonBox::Discard); + mDialogButtonBox->setStandardButtons(QDialogButtonBox::Help); KGuiItem::assign(mSendToButton, KGuiItem(i18n("Export Image..."))); mSendToButton->setIcon(QIcon::fromTheme(QStringLiteral("document-share"))); @@ -142,10 +142,6 @@ buildSaveMenu(); mDialogButtonBox->addButton(mSaveButton, QDialogButtonBox::ActionRole); - QShortcut *shortcut = new QShortcut(QKeySequence(Qt::Key_Escape), mDialogButtonBox->button(QDialogButtonBox::Discard)); - connect(shortcut, &QShortcut::activated, qApp, &QApplication::quit); - connect(mDialogButtonBox->button(QDialogButtonBox::Discard), &QPushButton::clicked, qApp, &QApplication::quit); - // the help menu KHelpMenu *helpMenu = new KHelpMenu(this, KAboutData::applicationData(), true); @@ -255,7 +251,6 @@ setWindowTitle(i18nc("Unsaved Screenshot", "Unsaved[*]")); setWindowModified(true); - KGuiItem::assign(mDialogButtonBox->button(QDialogButtonBox::Discard), KStandardGuiItem::discard()); show(); } @@ -311,7 +306,6 @@ { setWindowTitle(location.fileName()); setWindowModified(false); - KGuiItem::assign(mDialogButtonBox->button(QDialogButtonBox::Discard), KStandardGuiItem::quit()); } void KSMainWindow::save()