diff --git a/src/connectionlogdialog.cpp b/src/connectionlogdialog.cpp index d884d23..81a8707 100644 --- a/src/connectionlogdialog.cpp +++ b/src/connectionlogdialog.cpp @@ -26,7 +26,7 @@ #include "util.h" ConnectionLogDialog::ConnectionLogDialog(QWidget *p) : NetMauMauDialog(p, Qt::Window), - m_entryFont("Monospace"), m_model(), + m_entryFont("Monospace"), m_model(this), m_toIcon(QApplication::style()->standardIcon(QStyle::SP_ArrowRight)), m_fromIcon(QApplication::style()->standardIcon(QStyle::SP_ArrowLeft)), m_ctxPopup(new QMenu(this)) { diff --git a/src/deleteserversdialog.cpp b/src/deleteserversdialog.cpp index 60cc59a..51fa13b 100644 --- a/src/deleteserversdialog.cpp +++ b/src/deleteserversdialog.cpp @@ -25,7 +25,7 @@ #include "serverinfo.h" DeleteServersDialog::DeleteServersDialog(const QStandardItemModel *model, QWidget *p) : - NetMauMauDialog(p), m_pModel(model), m_model(0, 1) { + NetMauMauDialog(p), m_pModel(model), m_model(0, 1, this) { setupUi(this); diff --git a/src/main.cpp b/src/main.cpp index b5275e3..cf51e7c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,15 +38,15 @@ int main(int argc, char *argv[]) { QCoreApplication::setApplicationName(PACKAGE_NAME); QCoreApplication::setApplicationVersion(PACKAGE_VERSION); + NetMauMauApplication a(argc, argv); + #ifdef _WIN32 QSettings::setDefaultFormat(QSettings::IniFormat); #else - QSharedMemory sharedMemory; + QSharedMemory sharedMemory(&a); sharedMemory.setKey(QCoreApplication::applicationName() + qgetenv("USER")); #endif - NetMauMauApplication a(argc, argv); - QTranslator qtTranslator; #ifndef _WIN32 qtTranslator.load("qt_" + QLocale::system().name(), diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 820d97c..5720cbf 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -69,7 +69,7 @@ struct scoresPlayer : public std::binary_function