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

List:       kde-commits
Subject:    playground/pim/mailody/src
From:       Tom Albers <tomalbers () kde ! nl>
Date:       2007-01-27 19:16:26
Message-ID: 1169925386.556085.13300.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 627704 by toma:

Don't give an error when the startup site is left empty and allow that in the config. \
Request from Werner.


 M  +2 -1      mainwindow.cpp  
 M  +1 -1      setupaccount.cpp  


--- trunk/playground/pim/mailody/src/mainwindow.cpp #627703:627704
@@ -2252,7 +2252,8 @@
     tb->headers()->hide();
     tb->body()->setExternalImage(true);
     tb->body()->setOpenLinksDirectly(true);
-    tb->body()->openURL( page );
+    if (!page.isEmpty())
+        tb->body()->openURL( page );
 }
 
 void MainWindow::slotUpdateTabTitle(const QString& title)
--- trunk/playground/pim/mailody/src/setupaccount.cpp #627703:627704
@@ -192,7 +192,7 @@
     config->writeEntry("userName", d->userName->text());
     config->writeEntry("safeImap", d->safeImap->selectedId());
     QString hp = d->homePage->text();
-    if (!hp.startsWith("http://"))
+    if (!hp.startsWith("http://") && !hp.isEmpty())
         hp = "http://" + hp;
     config->writeEntry("homePage", hp);
     config->writeEntry("checkInt", d->checkInt->value());


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

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