[gnome-maps] application: Check for realized in open callback
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] application: Check for realized in open callback
- Date: Sun, 13 Dec 2015 20:34:49 +0000 (UTC)
commit 815a57ae17ce8efe6bdd9ba0fe49a4c8cf9657dd
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Sun Dec 13 21:34:38 2015 +0100
application: Check for realized in open callback
src/application.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 678cc6b..05185aa 100644
--- a/src/application.js
+++ b/src/application.js
@@ -265,6 +265,9 @@ const Application = new Lang.Class({
},
_openInternal: function(file) {
+ if (!this._mainWindow || !this._mainWindow.mapView.view.realized)
+ return;
+
let uri = file.get_uri();
if (GLib.uri_parse_scheme(uri) === 'geo') {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]