summaryrefslogtreecommitdiffstats
path: root/common/console.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-02 14:29:30 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-02 14:29:30 +0100
commitae1dcc585249a087e460a41c3c1f483af4d504ee (patch)
tree27a6b0582753d929832143a456525a7d5c9c6ba1 /common/console.cpp
parent3600b39c857984c4c67b9856358b5c0ee79eed6f (diff)
downloadsink-ae1dcc585249a087e460a41c3c1f483af4d504ee.tar.gz
sink-ae1dcc585249a087e460a41c3c1f483af4d504ee.zip
small cleanup
Diffstat (limited to 'common/console.cpp')
-rw-r--r--common/console.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/console.cpp b/common/console.cpp
index 183ce42..6fb174a 100644
--- a/common/console.cpp
+++ b/common/console.cpp
@@ -10,7 +10,7 @@ static Console *s_console = 0;
10Console *Console::main() 10Console *Console::main()
11{ 11{
12 if (!s_console) { 12 if (!s_console) {
13 s_console = new Console("Stupido!"); 13 s_console = new Console(QString());
14 } 14 }
15 return s_console; 15 return s_console;
16} 16}
@@ -18,7 +18,10 @@ Console *Console::main()
18Console::Console(const QString &title) 18Console::Console(const QString &title)
19 : QWidget(0) 19 : QWidget(0)
20{ 20{
21 s_console = this; 21 if (!s_console) {
22 s_console = this;
23 }
24
22 resize(1000, 1500); 25 resize(1000, 1500);
23 26
24 QVBoxLayout *topLayout = new QVBoxLayout(this); 27 QVBoxLayout *topLayout = new QVBoxLayout(this);