summaryrefslogtreecommitdiffstats
path: root/module/gui
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-30 15:59:36 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-30 15:59:36 +0200
commit664f9275ce16e760a42185fbb710235ebed4a806 (patch)
tree5bace98c7c0b2189862ad0687106529da6343183 /module/gui
parentlittle GUI and API fixes (diff)
downloadpyload-664f9275ce16e760a42185fbb710235ebed4a806.tar.xz
show warning only one time
Diffstat (limited to 'module/gui')
-rw-r--r--module/gui/ConnectionManager.py10
1 files 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()