From 49ce469c12e64e66122c653c7608f11bd8dcbf9d Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 15 Jun 2018 13:32:12 -0500 Subject: [PATCH] Don't display dialog when opening protected user's timeline. Closes #225 --- COPYING | 2 +- src/controller/mainController.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/COPYING b/COPYING index 80f8a56a..5c31826f 100644 --- a/COPYING +++ b/COPYING @@ -1,5 +1,5 @@ Tw Blue is free software, licensed under the GNU GPL license, either version 2 or, at your option, any later version. You can view the license in the file named license.txt, or online at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. -Copyright © 2013-2015. Manuel Cortéz +Copyright © 2013-2018. Manuel Cortéz Documentation is written by Sukil Etxenike, Brian Hartgen and Bill Dengler, covered by the Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license. You can read the license at https://creativecommons.org/licenses/by-nc-sa/2.5/ diff --git a/src/controller/mainController.py b/src/controller/mainController.py index ccae78b9..428931cc 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -839,8 +839,9 @@ class Controller(object): if usr["following"] == False: commonMessageDialogs.no_following() return - answer = commonMessageDialogs.protected_user() - if answer == widgetUtils.NO: return + if application.streaming_lives(): + answer = commonMessageDialogs.protected_user() + if answer == widgetUtils.NO: return tl_type = dlg.get_action() if tl_type == "tweets": if usr["statuses_count"] == 0: