[gnome-maps/wip/mlundblad/transit-routing] mainWindow: Active control+p only when route activated



commit f565bb8f2082c70114fbe5f6de60ae7902d899bf
Author: Marcus Lundblad <ml update uu se>
Date:   Sun Nov 27 22:29:49 2016 +0100

    mainWindow: Active control+p only when route activated
    
    Only actually activate a route printing action via the
    accelerator when a route is activated, to avoid showing
    the print dialog when the overview is being shown for
    transit routing.

 src/mainWindow.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index edb9278..511bccb 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -401,7 +401,7 @@ const MainWindow = new Lang.Class({
     },
 
     _printRouteActivate: function() {
-        if (this._mapView.routeVisible) {
+        if (this._mapView.routeActive) {
             let operation = new PrintOperation.PrintOperation({ mainWindow: this });
         }
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]