summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2019-03-06 01:26:56 +0100
committerGitHub <noreply@github.com>2019-03-06 01:26:56 +0100
commit18299459900ff31bccfd3300ca738b54727773ed (patch)
tree5c89115253aa48a21c3c0edd935e6102b16c8905
parent83159193bfbdd9a1afab6e4e03d972138a540126 (diff)
downloadmidori-git-18299459900ff31bccfd3300ca738b54727773ed.tar.gz
Removed focus timeout in the callback (#290)
(midori:24581): GLib-CRITICAL **: 15:48:51.069: Source ID 58 was not found when attempting to remove it
-rw-r--r--core/browser.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/browser.vala b/core/browser.vala
index 73d4e008..62e98e1c 100644
--- a/core/browser.vala
+++ b/core/browser.vala
@@ -305,6 +305,7 @@ namespace Midori {
focus_timeout = 0;
}
focus_timeout = Timeout.add (500, () => {
+ focus_timeout = 0;
tab.grab_focus ();
goto_activated ();
return Source.REMOVE;