mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 17:39:58 +00:00
* src/frontends/qt4/TocWidget.cpp (updateGui):
- set correct list (bug 4260). Sorry to violate my own rule, but this bug is so annoying, and the fix is straightforward (and the freeze is still young ;-). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22962 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eab21080f0
commit
35a75c5119
@ -248,20 +248,13 @@ void TocWidget::updateGui()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString current_text = typeCO->currentText();
|
|
||||||
//lyxerr << "current_text " << fromqstr(current_text) << endl;
|
|
||||||
typeCO->blockSignals(true);
|
typeCO->blockSignals(true);
|
||||||
typeCO->clear();
|
typeCO->clear();
|
||||||
int current_type = -1;
|
|
||||||
for (size_t i = 0; i != type_names.size(); ++i) {
|
for (size_t i = 0; i != type_names.size(); ++i) {
|
||||||
QString item = toqstr(type_names[i]);
|
QString item = toqstr(type_names[i]);
|
||||||
typeCO->addItem(item);
|
typeCO->addItem(item);
|
||||||
if (item == current_text)
|
|
||||||
current_type = i;
|
|
||||||
}
|
}
|
||||||
if (current_type != -1)
|
if (form_->selectedType() != -1)
|
||||||
typeCO->setCurrentIndex(current_type);
|
|
||||||
else
|
|
||||||
typeCO->setCurrentIndex(form_->selectedType());
|
typeCO->setCurrentIndex(form_->selectedType());
|
||||||
typeCO->blockSignals(false);
|
typeCO->blockSignals(false);
|
||||||
|
|
||||||
|
@ -156,6 +156,9 @@ What's new
|
|||||||
- Keep unapplied content of the document settings dialog after
|
- Keep unapplied content of the document settings dialog after
|
||||||
clicking in the main window (bug 4302).
|
clicking in the main window (bug 4302).
|
||||||
|
|
||||||
|
- Select the correct list in the outliner when right-clicking on the
|
||||||
|
TOC- or a "List-of-"inset (bug 4260).
|
||||||
|
|
||||||
- Fix access to network drives on Windows.
|
- Fix access to network drives on Windows.
|
||||||
|
|
||||||
- "Accept compound words" in Preferences->Spellchecker now also works
|
- "Accept compound words" in Preferences->Spellchecker now also works
|
||||||
|
Loading…
Reference in New Issue
Block a user