File no_kbookmark_write_error.diff of Package kdelibs4.import4225

From: Stephan Kulow <coolo@suse.de>

Work around random error on first startup, bnc#668185, kubuntu has a similiar patch
applied

Index: kdelibs-4.6.0/kio/bookmarks/kbookmarkmanager.cc
===================================================================
--- kdelibs-4.6.0.orig/kio/bookmarks/kbookmarkmanager.cc	2011-01-19 23:09:47.000000000 +0100
+++ kdelibs-4.6.0/kio/bookmarks/kbookmarkmanager.cc	2011-02-22 13:15:30.754692786 +0100
@@ -446,7 +446,7 @@ bool KBookmarkManager::saveAs( const QSt
                              "which is most likely a full hard drive.",
                          filename, file.errorString());
 
-        if (d->m_dialogAllowed && qApp->type() != QApplication::Tty && QThread::currentThread() == qApp->thread())
+        if (false && d->m_dialogAllowed && qApp->type() != QApplication::Tty && QThread::currentThread() == qApp->thread())
             KMessageBox::error( QApplication::activeWindow(), err );
 
         kError() << QString("Unable to save bookmarks in %1. File reported the following error-code: %2.").arg(filename).arg(file.error());
openSUSE Build Service is sponsored by