Properly remove button from toolbar
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
3c1a16afc6
commit
2ec9deb2aa
@ -61,7 +61,11 @@ class Readability(Falkon.PluginInterface, QtCore.QObject):
|
||||
self.buttons[window] = button
|
||||
|
||||
def onMainWindowDeleted(self, window):
|
||||
if window in self.buttons:
|
||||
if window not in self.buttons:
|
||||
return
|
||||
|
||||
button = self.buttons[window]
|
||||
window.navigationBar().removeToolButton(button)
|
||||
del self.buttons[window]
|
||||
|
||||
def populateWebViewMenu(self, menu, view, hitTestResult):
|
||||
|
Loading…
Reference in New Issue
Block a user