mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Fix copy-paste errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22457 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7c28905b17
commit
78cc57cd5a
@ -90,6 +90,10 @@ void GuiSelectionManager::updateAddPB()
|
||||
void GuiSelectionManager::updateDelPB()
|
||||
{
|
||||
int const srows = selectedLV->model()->rowCount();
|
||||
if (srows == 0) {
|
||||
deletePB->setEnabled(false);
|
||||
return;
|
||||
}
|
||||
QModelIndexList const selSels =
|
||||
selectedLV->selectionModel()->selectedIndexes();
|
||||
int const sel_nr = selSels.empty() ? -1 : selSels.first().row();
|
||||
@ -97,9 +101,13 @@ void GuiSelectionManager::updateDelPB()
|
||||
}
|
||||
|
||||
|
||||
void GuiSelectionManager::updateDownPB()
|
||||
void GuiSelectionManager::updateUpPB()
|
||||
{
|
||||
int const srows = selectedLV->model()->rowCount();
|
||||
if (srows == 0) {
|
||||
upPB->setEnabled(false);
|
||||
return;
|
||||
}
|
||||
QModelIndexList const selSels =
|
||||
selectedLV->selectionModel()->selectedIndexes();
|
||||
int const sel_nr = selSels.empty() ? -1 : selSels.first().row();
|
||||
@ -107,9 +115,13 @@ void GuiSelectionManager::updateDownPB()
|
||||
}
|
||||
|
||||
|
||||
void GuiSelectionManager::updateUpPB()
|
||||
void GuiSelectionManager::updateDownPB()
|
||||
{
|
||||
int const srows = selectedLV->model()->rowCount();
|
||||
if (srows == 0) {
|
||||
downPB->setEnabled(false);
|
||||
return;
|
||||
}
|
||||
QModelIndexList const selSels =
|
||||
selectedLV->selectionModel()->selectedIndexes();
|
||||
int const sel_nr = selSels.empty() ? -1 : selSels.first().row();
|
||||
|
Loading…
Reference in New Issue
Block a user