[latexila/latexila-2-0] Avoid grab_focus warning
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/latexila-2-0] Avoid grab_focus warning
- Date: Mon, 13 Jun 2011 23:01:43 +0000 (UTC)
commit 35e82e807044f6399252e8bd3079def62f28cbc1
Author: Sébastien Wilmet <swilmet src gnome org>
Date: Tue Jun 14 00:55:51 2011 +0200
Avoid grab_focus warning
src/search.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/search.vala b/src/search.vala
index 1aa3d91..31fcd9d 100644
--- a/src/search.vala
+++ b/src/search.vala
@@ -340,7 +340,8 @@ public class SearchAndReplace : GLib.Object
if (working_document != null)
clear_search ();
- main_window.active_view.grab_focus ();
+ if (main_window.active_view != null)
+ main_window.active_view.grab_focus ();
main_window.notify["active-document"].disconnect (active_document_changed);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]