Misc tweaks
* Do not nuke forge META-INF * Disable inner DnD in mod lists on linux.
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user