diff options
| author | Tannin <devnull@localhost> | 2013-12-07 16:54:08 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-12-07 16:54:08 +0100 |
| commit | e71c37df37dea1e4eb8b5e87027fc7f5f81bef56 (patch) | |
| tree | c29d13844b1481b6abdbeaf26f9ff1d333a94dba /src/mainwindow.cpp | |
| parent | b32457a7d2af4aeb095308c7f358a7a398ad849e (diff) | |
- bugfix: drag&drop on archive list didn't always work properly
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 59666a20..102c798e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -207,6 +207,8 @@ MainWindow::MainWindow(const QString &exeName, QSettings &initSettings, QWidget } ui->espList->installEventFilter(&m_PluginList); + ui->bsaList->setLocalMoveOnly(true); + resizeLists(initSettings.contains("mod_list_state"), initSettings.contains("plugin_list_state")); QMenu *linkMenu = new QMenu(this); @@ -1790,8 +1792,8 @@ void MainWindow::refreshBSAList() QTreeWidgetItem *newItem = new QTreeWidgetItem(strings); newItem->setData(0, Qt::UserRole, index); newItem->setData(1, Qt::UserRole, origin); -// newItem->setFlags(newItem->flags() & ~Qt::ItemIsDropEnabled | Qt::ItemIsUserCheckable); - newItem->setFlags(newItem->flags() | Qt::ItemIsUserCheckable); + newItem->setFlags(newItem->flags() & ~Qt::ItemIsDropEnabled | Qt::ItemIsUserCheckable); +// newItem->setFlags(newItem->flags() | Qt::ItemIsUserCheckable); newItem->setCheckState(0, (index != -1) ? Qt::Checked : Qt::Unchecked); if (m_Settings.forceEnableCoreFiles() && m_DefaultArchives.contains(filename)) { newItem->setCheckState(0, Qt::Checked); |
