]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxEXEC_NODISABLE while querying CUPS about printers.
authorRobert Roebling <robert@roebling.de>
Sun, 30 Jan 2005 14:56:21 +0000 (14:56 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 30 Jan 2005 14:56:21 +0000 (14:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/prntdlgg.cpp

index 25d85900beb2c7048476758c91e1f5025352bcf9..3c5be691679ed4248f29933863dc69d08b40af91 100644 (file)
@@ -519,7 +519,7 @@ void wxGenericPrintSetupDialog::Init(wxPrintData* data)
 
     wxArrayString errors;
     wxArrayString output;
-    long res = wxExecute( wxT("lpstat -v"), output, errors );
+    long res = wxExecute( wxT("lpstat -v"), output, errors, wxEXEC_NODISABLE );
     if (res >= 0 && errors.GetCount() == 0)
     {
         size_t i;
@@ -555,7 +555,7 @@ void wxGenericPrintSetupDialog::Init(wxPrintData* data)
             command += name;
             wxArrayString errors2;
             wxArrayString output2;
-            res = wxExecute( command, output2, errors2 );
+            res = wxExecute( command, output2, errors2, wxEXEC_NODISABLE );
             if (res >= 0 && errors2.GetCount() == 0 && output2.GetCount() > 0)
             {
                 tmp = output2[0]; // "printer hp_deskjet930c is idle. enable since ..."