Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:hp:education
kdelibs3
krun-pass-windows.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File krun-pass-windows.diff of Package kdelibs3
--- kio/kio/krun.cpp.sav 2005-09-29 21:31:30.000000000 +0200 +++ kio/kio/krun.cpp 2006-03-06 13:51:13.000000000 +0100 @@ -693,11 +693,16 @@ pid_t KRun::run( const KService& _servic pid_t KRun::run( const KService& _service, const KURL::List& _urls, bool tempFiles ) { + return run( _service, _urls, 0, tempFiles ); +} + +pid_t KRun::run( const KService& _service, const KURL::List& _urls, QWidget* window, bool tempFiles ) +{ if (!_service.desktopEntryPath().isEmpty() && !KDesktopFile::isAuthorizedDesktopFile( _service.desktopEntryPath())) { kdWarning() << "No authorization to execute " << _service.desktopEntryPath() << endl; - KMessageBox::sorry(0, i18n("You are not authorized to execute this service.")); + KMessageBox::sorry(window, i18n("You are not authorized to execute this service.")); return 0; } @@ -735,7 +740,7 @@ pid_t KRun::run( const KService& _servic if (i != 0) { kdDebug(7010) << error << endl; - KMessageBox::sorry( 0L, error ); + KMessageBox::sorry( window, error ); return 0; } --- kio/kio/krun.h.sav 2005-09-29 21:31:29.000000000 +0200 +++ kio/kio/krun.h 2006-03-06 13:50:36.000000000 +0100 @@ -192,6 +192,19 @@ public: * @param _service the service to run * @param _urls the list of URLs, can be empty (app launched * without argument) + * @param window The top-level widget of the app that invoked this object. + * @param tempFiles if true and _urls are local files, they will be deleted + * when the application exits. + * @return the process id, or 0 on error + * @since 3.5.2 + */ + static pid_t run( const KService& _service, const KURL::List& _urls, QWidget* window, bool tempFiles = false ); + /** + * Open a list of URLs with a certain service (application). + * + * @param _service the service to run + * @param _urls the list of URLs, can be empty (app launched + * without argument) * @param tempFiles if true and _urls are local files, they will be deleted * when the application exits. * @return the process id, or 0 on error
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor