From 664f9275ce16e760a42185fbb710235ebed4a806 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 30 Sep 2011 15:59:36 +0200 Subject: show warning only one time --- module/gui/ConnectionManager.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/gui/ConnectionManager.py b/module/gui/ConnectionManager.py index 930cbd889..def575abc 100644 --- a/module/gui/ConnectionManager.py +++ b/module/gui/ConnectionManager.py @@ -24,11 +24,17 @@ from os.path import join from uuid import uuid4 as uuid class ConnectionManager(QWidget): + + + warningShown = False + def __init__(self): QWidget.__init__(self) - QMessageBox.warning(self, 'Warning', - "We are sorry but the GUI is not stable yet. Please use the webinterface for much better experience. \n", QMessageBox.Ok) + if not self.warningShown: + QMessageBox.warning(self, 'Warning', + "We are sorry but the GUI is not stable yet. Please use the webinterface for much better experience. \n", QMessageBox.Ok) + ConnectionManager.warningShown = True mainLayout = QHBoxLayout() buttonLayout = QVBoxLayout() -- cgit v1.2.3