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

List:       kde-commits
Subject:    playground/base/plasma/applets/incomingmsg
From:       Christian Weilbach <christian () whiletaker ! homeip ! net>
Date:       2008-08-14 13:26:25
Message-ID: 1218720385.631047.18819.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 847025 by weilbach:

Some error handling + fix.


 M  +6 -0      plasma-incomingmsg.cpp  
 M  +0 -3      plasma-incomingmsg.h  


--- trunk/playground/base/plasma/applets/incomingmsg/plasma-incomingmsg.cpp #847024:847025
@@ -94,6 +94,12 @@
        }
    }
 
+   if(!mLayout->count()){
+       Plasma::Label *errorLabel = new Plasma::Label();
+       errorLabel->setText( i18n( "No running messaging apps found. Supported apps are KMail." ) );
+       mLayout->addItem(errorLabel);
+   }
+
    setLayout(mLayout);
 }
 
--- trunk/playground/base/plasma/applets/incomingmsg/plasma-incomingmsg.h #847024:847025
@@ -26,8 +26,6 @@
 #include <Plasma/Applet>
 #include <Plasma/Svg>
 
-#include "ui_widget.h"
-
 class QGraphicsLinearLayout;
 
 namespace Plasma {
@@ -56,7 +54,6 @@
 
       QGraphicsLinearLayout *mLayout, *mKMailLayout;
 
-      Ui::leavenoteConfig ui;
     private slots:
       void slotNewMail();
 };
[prev in list] [next in list] [prev in thread] [next in thread] 

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