diff options
| author | 2024-03-13 10:04:31 +0100 | |
|---|---|---|
| committer | 2024-03-13 10:04:31 +0100 | |
| commit | b675a2eaf2434da54d14abebe464d1ab2af95abc (patch) | |
| tree | 2cb54891a63e2bf6f0548a85a6676a9e1dc42dbd | |
| parent | Fix linux CI badge (diff) | |
| download | KVIrc-b675a2eaf2434da54d14abebe464d1ab2af95abc.tar.gz KVIrc-b675a2eaf2434da54d14abebe464d1ab2af95abc.tar.bz2 KVIrc-b675a2eaf2434da54d14abebe464d1ab2af95abc.zip | |
Fix crash on undo; fix #2617 (#2618)
| -rw-r--r-- | src/kvirc/ui/KviInputEditor.cpp | 2 |
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 |
