summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-21 23:07:19 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-21 23:07:19 -0300
commit3fdea49e706a147e4f714e5642993169f7a7e8dc (patch)
tree39580009e462d4aeeb8f06a62d5e2b6a1ae45591 /qt-ui/mainwindow.cpp
parent37ada91000dc14e0d154e1a3f4fd7f1f842ce956 (diff)
downloadsubsurface-3fdea49e706a147e4f714e5642993169f7a7e8dc.tar.gz
Fixed the hide / show columns using the settings.
This also changed a bit the behavior on how the QSettings are managed, till now, we used the QSettings constructor passing the name of the software and the 'company', but this is now default - so there's no need to pass anything by the QSettings contructor. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 30629ce95..56b512a3a 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -323,7 +323,7 @@ void MainWindow::readSettings()
{
int i;
QVariant v;
- QSettings settings("hohndel.org","subsurface");
+ QSettings settings;
settings.beginGroup("MainWindow");
QSize sz = settings.value("size").value<QSize>();
@@ -416,7 +416,7 @@ void MainWindow::readSettings()
void MainWindow::writeSettings()
{
int i;
- QSettings settings("hohndel.org","subsurface");
+ QSettings settings;
settings.beginGroup("MainWindow");
settings.setValue("size",size());