Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F118107569
D58.1775626756.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1012 B
Referenced Files
None
Subscribers
None
D58.1775626756.diff
View Options
Index: kaddressbook/mainwidget.cpp
===================================================================
--- kaddressbook/mainwidget.cpp
+++ kaddressbook/mainwidget.cpp
@@ -696,17 +696,18 @@
QPrintDialog printDialog(KdePrint::createPrintDialog(&printer));
+
printDialog.setWindowTitle( i18n( "Print Contacts" ) );
- if ( !printDialog.exec() ) { //krazy:exclude=crashy
+ if (printDialog.exec() != QDialog::Accepted) {
return;
}
- KABPrinting::PrintingWizard wizard( &printer, mItemView->selectionModel(), this );
+ KABPrinting::PrintingWizard wizard( printDialog.printer(), mItemView->selectionModel(), this );
wizard.setDefaultAddressBook( currentAddressBook() );
wizard.exec(); //krazy:exclude=crashy
- Settings::self()->setDefaultFileName( printer.outputFileName() );
+ Settings::self()->setDefaultFileName( printDialog.printer()->outputFileName() );
Settings::self()->setPrintingStyle( wizard.printingStyle() );
Settings::self()->setSortOrder( wizard.sortOrder() );
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 5:39 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18827046
Default Alt Text
D58.1775626756.diff (1012 B)
Attached To
Mode
D58: Use configured printer and not always default one
Attached
Detach File
Event Timeline