aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ctrlaltca2024-03-13 10:04:31 +0100
committerGravatar GitHub2024-03-13 10:04:31 +0100
commitb675a2eaf2434da54d14abebe464d1ab2af95abc (patch)
tree2cb54891a63e2bf6f0548a85a6676a9e1dc42dbd
parentFix linux CI badge (diff)
downloadKVIrc-b675a2eaf2434da54d14abebe464d1ab2af95abc.tar.gz
KVIrc-b675a2eaf2434da54d14abebe464d1ab2af95abc.tar.bz2
KVIrc-b675a2eaf2434da54d14abebe464d1ab2af95abc.zip
Fix crash on undo; fix #2617 (#2618)
-rw-r--r--src/kvirc/ui/KviInputEditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvirc/ui/KviInputEditor.cpp b/src/kvirc/ui/KviInputEditor.cpp
index a73f2aaf6..e2fce24dc 100644
--- a/src/kvirc/ui/KviInputEditor.cpp
+++ b/src/kvirc/ui/KviInputEditor.cpp
@@ -2603,7 +2603,7 @@ void KviInputEditor::undo()
if(m_UndoStack.empty())
return; // this should be ensured by isUndoAvailable() but well...
- std::unique_ptr<EditCommand> pCommand = std::move(m_RedoStack.back());
+ std::unique_ptr<EditCommand> pCommand = std::move(m_UndoStack.back());
m_UndoStack.pop_back();
Q_ASSERT(pCommand); // should be true: we delete the empty undo stack