summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristiam Dywan <christian@twotoasts.de>2019-03-04 21:55:38 +0100
committerChristiam Dywan <christian@twotoasts.de>2019-03-04 21:55:38 +0100
commit5527366270be5e047bfc0ca6f9ad55cb2ca95432 (patch)
treeaddde7609434220c104cc110a2460fd06b6018d0
parent0c5820ffe24295c0550a27537fe34ebc9ae447e8 (diff)
downloadmidori-git-tab_focus_timeout_callback_remove_source.tar.gz
Removed focus timeout in the callbacktab_focus_timeout_callback_remove_source
(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;