diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-11-04 12:32:32 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-11-04 12:33:37 -0600 |
| commit | 2e09e633bd40f9844d0346ae86b19b9709d8a735 (patch) | |
| tree | 49b9a2f04721036d606fe9b7585ef51c46a021ae /src/mainwindow.cpp | |
| parent | 1189b8cc339ad8f55814748ff7eea5bda08b45fd (diff) | |
Fix creating separators when right-clicking overwrite
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 752c5c76..7c7d9c95 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2874,7 +2874,7 @@ void MainWindow::createSeparator_clicked() }
if (m_OrganizerCore.createMod(name) == nullptr) { return; }
m_OrganizerCore.refreshModList();
- if (m_ContextRow >= 0) {
+ if (m_ContextRow >= 0 && newPriority >= 0) {
m_OrganizerCore.modList()->changeModPriority(ModInfo::getIndex(name), newPriority);
}
}
|
