Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > ae50a3bc5665a7a3fd7ad5adb3cf90f4 > files > 12

kdebase4-4.4.3-7mdv2010.1.src.rpm

Index: kdebase/apps/konqueror/settings/kio/kmanualproxydlg.cpp
===================================================================
--- kdebase/apps/konqueror/settings/kio/kmanualproxydlg.cpp	(révision 1122352)
+++ kdebase/apps/konqueror/settings/kio/kmanualproxydlg.cpp	(révision 1122353)
@@ -362,15 +362,15 @@
   QString result;
   if( getException( result, i18n("Change Exception"),
                     mDlg->lbExceptions->currentItem()->text() ) &&
-      !handleDuplicate( result ) ) 
-      mDlg->lbExceptions->currentItem()->setText(result); 
+      !handleDuplicate( result ) )
+      mDlg->lbExceptions->currentItem()->setText(result);
 }
 
 void KManualProxyDlg::deletePressed()
 {
     delete mDlg->lbExceptions->takeItem( mDlg->lbExceptions->currentRow() );
     if(mDlg->lbExceptions->currentItem())
-       mDlg->lbExceptions->currentItem()->setSelected(true); 
+       mDlg->lbExceptions->currentItem()->setSelected(true);
     updateButtons();
 }
 
@@ -393,7 +393,7 @@
 QString KManualProxyDlg::urlFromInput(const KLineEdit* edit,
                                       const KIntSpinBox* spin) const
 {
-  if (!edit)
+  if (!edit || edit->text().isEmpty())
     return QString();
 
   KUrl u( edit->text() );
@@ -486,7 +486,7 @@
 
     // If the typed URL is malformed, and the filters cannot filter it
     // then it must be an invalid entry,
-    if( isValidURL(result) || (result.length() >= 3 && result.startsWith('.')))	
+    if( isValidURL(result) || (result.length() >= 3 && result.startsWith('.')))
       return true;
 
     showErrorMsg();