* 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:
Jürgen Spitzmüller 2008-02-12 13:57:38 +00:00
parent eab21080f0
commit 35a75c5119
2 changed files with 4 additions and 8 deletions

View File

@ -248,20 +248,13 @@ void TocWidget::updateGui()
return;
}
QString current_text = typeCO->currentText();
//lyxerr << "current_text " << fromqstr(current_text) << endl;
typeCO->blockSignals(true);
typeCO->clear();
int current_type = -1;
for (size_t i = 0; i != type_names.size(); ++i) {
QString item = toqstr(type_names[i]);
typeCO->addItem(item);
if (item == current_text)
current_type = i;
}
if (current_type != -1)
typeCO->setCurrentIndex(current_type);
else
if (form_->selectedType() != -1)
typeCO->setCurrentIndex(form_->selectedType());
typeCO->blockSignals(false);

View File

@ -156,6 +156,9 @@ What's new
- Keep unapplied content of the document settings dialog after
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.
- "Accept compound words" in Preferences->Spellchecker now also works