[PC-BSD Commits] r5766 - pcbsd/trunk/SoftwareManager

svn at pcbsd.org svn at pcbsd.org
Mon Jan 4 11:49:46 PST 2010


Author: kris
Date: 2010-01-04 11:49:46 -0800 (Mon, 04 Jan 2010)
New Revision: 5766

Modified:
   pcbsd/trunk/SoftwareManager/softmanager-webview.cpp
Log:

Fixed a bug with spawning repeated browser windows when going external 



Modified: pcbsd/trunk/SoftwareManager/softmanager-webview.cpp
===================================================================
--- pcbsd/trunk/SoftwareManager/softmanager-webview.cpp	2010-01-04 19:34:47 UTC (rev 5765)
+++ pcbsd/trunk/SoftwareManager/softmanager-webview.cpp	2010-01-04 19:49:46 UTC (rev 5766)
@@ -11,6 +11,7 @@
 *********************************************************************/
 void PBM::startPBIDirLoad()
 {
+  QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled, false);
   toolForwardButton->setEnabled(false);
   toolBackButton->setEnabled(false);
   toolHomeButton->setEnabled(false);
@@ -205,6 +206,7 @@
   if ( url.toString().indexOf("pbi://") != 0 && url.toString().indexOf("http://www.pbidir.com") != 0 )
   {
     webPBIView->stop();
+    webPBIView->back();
     system("konqueror " + url.toString().toLatin1() + " &");
   }
 }



More information about the Commits mailing list