[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [konqueror] [Bug 182843] JJ error if can't find keditbookmarks
From:       Mike Krutov <nekoxmachina () gmail ! com>
Date:       2014-01-18 19:08:19
Message-ID: bug-182843-5021-kq8FaNQHzQ () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=182843

--- Comment #6 from Mike Krutov <nekoxmachina@gmail.com> ---
Comment on attachment 84717
  --> https://bugs.kde.org/attachment.cgi?id=84717
call kWarning if no keditbookmarkmanager is found.

--- kbookmarkmanager.cc.orig    2014-01-18 23:03:56.646763740 +0400
+++ kbookmarkmanager.cc 2014-01-18 23:07:24.106779095 +0400
@@ -621,7 +621,12 @@
     if( !d->m_dbusObjectName.isEmpty() )
       args << QLatin1String("--dbusObjectName") << d->m_dbusObjectName;
     args << d->m_bookmarksFile;
-    QProcess::startDetached("keditbookmarks", args);
+    if(!QProcess::startDetached("keditbookmarks", args)) {
+      kWarning()<<"Option unavailable: keditbookmarks not found";
+      KMessageBox::detailedError(d->m_dialogParent, "You do not have
keditbookmarks installed", "Please install keditbookmarks package with your
package manager.");
+      
+      
+    }
 }

 void KBookmarkManager::slotEditBookmarksAtAddress( const QString& address )
@@ -635,7 +640,14 @@
       args << QLatin1String("--dbusObjectName") << d->m_dbusObjectName;
     args << QLatin1String("--address") << address
          << d->m_bookmarksFile;
-    QProcess::startDetached("keditbookmarks", args);
+        
+//
+//    QProcess::startDetached("keditbookmarks", args);
+  if(!QProcess::startDetached("keditbookmarks", args))  {
+    kWarning()<<"Option unavailable: keditbookmarks not found";
+    KMessageBox::detailedError(d->m_dialogParent, "You do not have
keditbookmarks installed", "Please install keditbookmarks package with your
package manager.");
+    
+  }
 }

 ///////

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic