Bug 93331

Summary: Printing with out selection crashes kPrinter
Product: [Unmaintained] kdeprint Reporter: Pete <pete.parks>
Component: generalAssignee: Michael Goffioul <kdeprint_bugs>
Status: CLOSED FIXED    
Severity: crash CC: burnus, coolo, jlayt
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pete 2004-11-15 21:38:37 UTC
Version:           KPrinter (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs
OS:                Linux

When another application calls KPrinter to print somethinga and the user by chance presses print before selecting a file to print then kPrinter crashes. 

This is fairly start-forward to reproduce:
1.) Start KPrinter directly or indirectly.
2.) Press print before selecting a file or files to print.
3.) KPrinter interface is non-functional once the print button is clicked
Comment 1 kpfeifle 2004-11-26 13:07:34 UTC
CVS commit by pfeifle: 

Avoid dead-lock when no file has been specified.
CCMAIL:<93331-close@bugs.kde.org>


  M +4 -0      printwrapper.cpp   1.20


--- kdebase/kdeprint/kprinter/printwrapper.cpp  #1.19:1.20
@@ -320,4 +320,8 @@ void PrintWrapper::slotPrintRequested(KP
         if (filestoprint.count() == 0)
         {
+                // At this point force_stdin should be true
+                if (!force_stdin)
+                        errormsg(i18n("Nothing to print."));
+
                 // print from stdin
 


Comment 2 Cristian Tibirna 2005-08-28 20:04:02 UTC
*** Bug 87921 has been marked as a duplicate of this bug. ***
Comment 3 Cristian Tibirna 2005-09-24 05:08:18 UTC
*** Bug 66931 has been marked as a duplicate of this bug. ***
Comment 4 John Layt 2008-12-31 17:41:55 UTC
Closing old Resolved status bug.