Kaydet (Commit) 9f32d341 authored tarafından Jim Raykowski's avatar Jim Raykowski Kaydeden (comit) Muhammet Kara

tdf#124846 Make main menu items really move when moved

This patch also fixes the Move Menu dialog move up button being enabled
when dialog is created.

Change-Id: I8432bd8d582e8a9ef449bce1d5cba703b2404c75
Reviewed-on: https://gerrit.libreoffice.org/71001
Tested-by: Jenkins
Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
Tested-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
Reviewed-by: 's avatarMuhammet Kara <muhammet.kara@collabora.com>
üst 19399672
......@@ -1757,6 +1757,8 @@ SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog(
m_xMoveUpButton->connect_clicked(LINK( this, SvxMainMenuOrganizerDialog, MoveHdl));
m_xMoveDownButton->connect_clicked(LINK( this, SvxMainMenuOrganizerDialog, MoveHdl));
UpdateButtonStates();
}
SvxMainMenuOrganizerDialog::~SvxMainMenuOrganizerDialog()
......@@ -1818,6 +1820,8 @@ IMPL_LINK( SvxMainMenuOrganizerDialog, MoveHdl, weld::Button&, rButton, void )
m_xMenuListBox->insert(nTargetEntry, sEntry, &sId, nullptr, nullptr);
m_xMenuListBox->select(nTargetEntry);
std::swap(mpEntries->at(nSourceEntry), mpEntries->at(nTargetEntry));
UpdateButtonStates();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment