Commit d7d2e9b0 authored by Falk Alexander Seidl's avatar Falk Alexander Seidl

Prevent Attribute Error caused by wrong Condition Order

parent 506001da
Pipeline #71443 passed with stage
in 14 minutes and 17 seconds
......@@ -826,15 +826,15 @@ class UnlockedDatabase:
#
def undo_redo_receiver(self, action):
if "TabBox" not in self.window.get_focus().get_name():
return
if type(self.window.get_focus()) is not Gtk.Entry and type(self.window.get_focus()) is not Gtk.TextView:
return
if type(self.window.get_focus().get_buffer()) is not passwordsafe.history_buffer.HistoryTextBuffer and type(self.window.get_focus().get_buffer()) is not passwordsafe.history_buffer.HistoryEntryBuffer:
return
if "TabBox" not in self.window.get_focus().get_name():
return
buffer = self.window.get_focus().get_buffer()
text = ""
if action == "undo":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment