From aa54975a2f48edd9810ce883520f5c77d12365ea Mon Sep 17 00:00:00 2001 From: Pieter van der Kloet Date: Tue, 29 Mar 2011 17:07:24 +0200 Subject: [PATCH] Removed the directoryLoaded() signal as it's only available in Qt 4.7. --- apps/launcher/datafilesdialog.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/launcher/datafilesdialog.cpp b/apps/launcher/datafilesdialog.cpp index 201e2939c9..1fb387eadc 100644 --- a/apps/launcher/datafilesdialog.cpp +++ b/apps/launcher/datafilesdialog.cpp @@ -118,19 +118,19 @@ DataFilesDialog::DataFilesDialog() // Signals and slots - connect(dataFilesModel, SIGNAL(directoryLoaded(const QString &)), this, SLOT(setupView())); -// connect(dataFilesModel, SIGNAL(dataChanged(const QModelIndex, const QModelIndex)), this, SLOT(readConfig())); + //connect(dataFilesModel, SIGNAL(directoryLoaded(const QString &)), this, SLOT(setupView())); connect(dataFilesView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(setCheckstate(QModelIndex))); connect(selectionModel, SIGNAL(currentChanged(QModelIndex, QModelIndex)), this, SLOT(changeData(QModelIndex, QModelIndex))); - connect(lineFilter, SIGNAL(textChanged(const QString &)), this, SLOT(setFilter())); + connect(lineFilter, SIGNAL(textChanged(const QString&)), this, SLOT(setFilter())); connect(buttonBox->button(QDialogButtonBox::RestoreDefaults), SIGNAL(clicked()), this, SLOT(restoreDefaults())); connect(buttonBox, SIGNAL(accepted()), this, SLOT(writeConfig())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(close())); readConfig(); + setupView(); } void DataFilesDialog::changeData(QModelIndex index, QModelIndex bottom) @@ -209,8 +209,6 @@ void DataFilesDialog::setupView() void DataFilesDialog::readConfig() { - qDebug() << "datachanged"; - // Morrowind.ini settings QSettings settings("Morrowind.ini", QSettings::IniFormat);