2051 """ Until you close the window, you can still click""" |
2051 """ Until you close the window, you can still click""" |
2052 """ the Back and Forward buttons to return to the""" |
2052 """ the Back and Forward buttons to return to the""" |
2053 """ web pages you have opened.</p>""") |
2053 """ web pages you have opened.</p>""") |
2054 res = QMessageBox.question(self, "", txt, |
2054 res = QMessageBox.question(self, "", txt, |
2055 QMessageBox.StandardButtons(\ |
2055 QMessageBox.StandardButtons(\ |
2056 QMessageBox.Cancel | \ |
2056 QMessageBox.Yes | \ |
2057 QMessageBox.Ok), |
2057 QMessageBox.No), |
2058 QMessageBox.Ok) |
2058 QMessageBox.No) |
2059 if res == QMessageBox.Ok: |
2059 if res == QMessageBox.Yes: |
2060 settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True) |
2060 settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True) |
2061 self.pathCombo.setInsertPolicy(QComboBox.NoInsert) |
2061 self.pathCombo.setInsertPolicy(QComboBox.NoInsert) |
2062 self.privacyLabel.setPixmap( |
2062 self.privacyLabel.setPixmap( |
2063 UI.PixmapCache.getPixmap("privateBrowsing.png")) |
2063 UI.PixmapCache.getPixmap("privateBrowsing.png")) |
2064 self.__setIconDatabasePath(False) |
2064 self.__setIconDatabasePath(False) |