Skip to content

Commit

Permalink
Disable accellerators before freeing them (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca authored Dec 24, 2023
1 parent ac4c2db commit 4d2b1b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kvirc/ui/KviMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ void KviMainWindow::freeAccelleratorKeySequence(const QString & key)
{
if(pS->key() == kS)
{
pS->setEnabled(false);
m_pAccellerators.erase(
std::remove(m_pAccellerators.begin(), m_pAccellerators.end(), pS),
m_pAccellerators.end()
Expand Down

0 comments on commit 4d2b1b0

Please sign in to comment.