Bug 93331 - Printing with out selection crashes kPrinter
Summary: Printing with out selection crashes kPrinter
Status: CLOSED FIXED
Alias: None
Product: kdeprint
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Michael Goffioul
URL:
Keywords:
: 66931 87921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-15 21:38 UTC by Pete
Modified: 2008-12-31 17:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.