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

List:       kde-commits
Subject:    extragear/sysadmin/libqapt/src
From:       Jonathan Michael Thomas <echidnaman () kubuntu ! org>
Date:       2010-12-28 15:04:06
Message-ID: 20101228150406.2BA97AC8AD () svn ! kde ! org
[Download RAW message or body]

SVN commit 1209920 by jmthomas:

Report whether or not an InitError comes from the worker. This way applications can \
know if they should quit or not.


 M  +1 -0      backend.cpp  
 M  +2 -0      worker/worker.cpp  


--- trunk/extragear/sysadmin/libqapt/src/backend.cpp #1209919:1209920
@@ -226,6 +226,7 @@
     string message;
     bool isError = _error->PopMessage(message);
     if (isError) {
+        details[QLatin1String("FromWorker")] = false;
         details[QLatin1String("ErrorText")] = QString::fromStdString(message);
     }
 
--- trunk/extragear/sysadmin/libqapt/src/worker/worker.cpp #1209919:1209920
@@ -124,6 +124,7 @@
         m_cache = new QApt::Cache(this);
     }
     if (!m_cache->open()) {
+        aptDebug() << "Cache didn't open";
         throwInitError();
         return false;
     }
@@ -140,6 +141,7 @@
     string message;
     bool isError = _error->PopMessage(message);
     if (isError) {
+        details[QLatin1String("FromWorker")] = true;
         details[QLatin1String("ErrorText")] = QString::fromStdString(message);
     }
 


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

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