diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-04-21 21:39:00 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-04-21 21:39:00 +0200 |
commit | 9cf4b9bd6488ce0103c4c6270e08fe8059326de3 (patch) | |
tree | c946ad407d0a655a5324d4bd9c325540eaa22a1c /kde-apps/kaddressbook | |
parent | kde-apps/knotes: Add missing patch (diff) | |
download | gentoo-9cf4b9bd6488ce0103c4c6270e08fe8059326de3.tar.gz gentoo-9cf4b9bd6488ce0103c4c6270e08fe8059326de3.tar.bz2 gentoo-9cf4b9bd6488ce0103c4c6270e08fe8059326de3.zip |
kde-apps/kaddressbook: Add missing patch
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/kaddressbook')
-rw-r--r-- | kde-apps/kaddressbook/files/kaddressbook-22.03.80-unused-dep.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/kde-apps/kaddressbook/files/kaddressbook-22.03.80-unused-dep.patch b/kde-apps/kaddressbook/files/kaddressbook-22.03.80-unused-dep.patch new file mode 100644 index 000000000000..1a988e0c2d76 --- /dev/null +++ b/kde-apps/kaddressbook/files/kaddressbook-22.03.80-unused-dep.patch @@ -0,0 +1,36 @@ +From 0b5823a77372924025fb24bf245839393dbe3f70 Mon Sep 17 00:00:00 2001 +From: Laurent Montel <montel@kde.org> +Date: Tue, 15 Mar 2022 06:57:48 +0100 +Subject: [PATCH] Use KWindowStateSaver directly + +--- + src/mainwidget.cpp | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp +index 440f0ff1..1372efa1 100644 +--- a/src/mainwidget.cpp ++++ b/src/mainwidget.cpp +@@ -76,7 +76,7 @@ + #include <QTextBrowser> + + #include <Akonadi/ItemModifyJob> +-#include <PimCommon/KPimPrintPreviewDialog> ++#include <KWindowStateSaver> + #include <QActionGroup> + #include <QDBusConnection> + #include <QHBoxLayout> +@@ -694,7 +694,9 @@ void MainWidget::printPreview() + printer.setOutputFormat(QPrinter::PdfFormat); + printer.setCollateCopies(true); + +- QPointer<PimCommon::KPimPrintPreviewDialog> previewdlg = new PimCommon::KPimPrintPreviewDialog(&printer, this); ++ QPointer<QPrintPreviewDialog> previewdlg = new QPrintPreviewDialog(&printer, this); ++ new KWindowStateSaver(previewdlg.data(), "KAddressBookPrintPreviewDialog"); ++ + KABPrinting::PrintingWizard wizard(&printer, mItemView->selectionModel(), this); + wizard.setDefaultAddressBook(currentAddressBook()); + connect(previewdlg.data(), &QPrintPreviewDialog::paintRequested, this, [&wizard]() { +-- +GitLab + |