From 78e278c1e33e39eb29a26a976b19ea6a8150bfff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 28 Aug 2013 21:52:19 +0200 Subject: Misc tweaks * Do not nuke forge META-INF * Disable inner DnD in mod lists on linux. --- gui/LegacyModEditDialog.cpp | 4 ++-- gui/mainwindow.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'gui') diff --git a/gui/LegacyModEditDialog.cpp b/gui/LegacyModEditDialog.cpp index f1e0af6f..616fc050 100644 --- a/gui/LegacyModEditDialog.cpp +++ b/gui/LegacyModEditDialog.cpp @@ -35,12 +35,12 @@ LegacyModEditDialog::LegacyModEditDialog( LegacyInstance* inst, QWidget* parent ensureFolderPathExists(m_inst->jarModsDir()); m_jarmods = m_inst->jarModList(); ui->jarModsTreeView->setModel(m_jarmods.data()); - +#ifndef Q_OS_LINUX // FIXME: internal DnD causes segfaults later ui->jarModsTreeView->setDragDropMode(QAbstractItemView::DragDrop); // FIXME: DnD is glitched with contiguous (we move only first item in selection) ui->jarModsTreeView->setSelectionMode(QAbstractItemView::SingleSelection); - +#endif ui->jarModsTreeView->installEventFilter( this ); m_jarmods->startWatching(); } diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index cef5f278..7cdf93ad 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -410,9 +410,11 @@ void MainWindow::on_actionRenameInstance_triggered() if (name.length() > 0) { - if(ok && name.length() && name.length() <= 25) + if(ok && name.length()) + { m_selectedInstance->setName(name); - renameButton->setText(name); + renameButton->setText(name); + } } } -- cgit v1.2.3