From a61558117fcef55507a50cd4c07a2626584d1469 Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Wed, 21 Sep 2011 21:06:19 +0200 Subject: [PATCH] qtmultimedia related compile fix (hopefully), adjusted maximum ban duration --- cockatrice/cockatrice.pro | 10 +++++++--- cockatrice/src/userlist.cpp | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cockatrice/cockatrice.pro b/cockatrice/cockatrice.pro index 67cce375..6fce170b 100644 --- a/cockatrice/cockatrice.pro +++ b/cockatrice/cockatrice.pro @@ -5,9 +5,13 @@ INCLUDEPATH += . src ../common MOC_DIR = build OBJECTS_DIR = build RESOURCES = cockatrice.qrc -QT += network script svg multimedia -CONFIG += mobility -MOBILITY = multimedia +QT += network script svg +linux-g++ { + CONFIG += mobility + MOBILITY = multimedia +} else { + QT += multimedia +} HEADERS += src/abstractcounter.h \ src/counter_general.h \ diff --git a/cockatrice/src/userlist.cpp b/cockatrice/src/userlist.cpp index d0eef42e..0128b98d 100644 --- a/cockatrice/src/userlist.cpp +++ b/cockatrice/src/userlist.cpp @@ -24,6 +24,7 @@ BanDialog::BanDialog(QWidget *parent) durationEdit = new QSpinBox; durationEdit->setMinimum(0); durationEdit->setValue(5); + durationEdit->setMaximum(99999999); QLabel *reasonLabel = new QLabel(tr("Please enter the reason for the ban.\nThis is only saved for moderators and cannot be seen by the banned person.")); reasonEdit = new QPlainTextEdit;