Enrico Forestieri wrote:
> On Tue, Nov 14, 2006 at 08:21:10PM +0100, Peter Kümmel wrote:
>> Georg Baum wrote:
>
>>> Indeed. Does the attached patch work for you? If yes I would prefer that,
>>> since we should convert all filename stuff to docstring eventually and use
>>> one place where that is converted to the encoding that is actually usesd
>>> by the file system. I don't get the crash with or without the patch.
>>>
>> Yes, your patch also works.
>> The crash here is produced by a check of the STL code, so if there
>> is no check it is possible that it doesn't hurt.
>
> I don't get crashes on cygwin, but when doing "View Source" I get
> all sort of things inside the \bibliography{<here>} command (even
> pieces of the sources!), and they change whenever I repeat the action.
>
> The patch from Georg fixes it. But I also see another problem.
> When clicking on the "BibTeX Generated Bibliography" inset, I don't
> see the bibliography style, even if it is there. This must be due to
> the following error printed on the console:
>
> Object::connect: No such signal QComboBox::textChanged(QString)
> Object::connect: (sender name: 'styleCB')
> Object::connect: (receiver name: 'QBibtexUi')
>
> The funny thing is that I only get this error on cygwin but not on
> solaris, even if the problem is there, too.
>
Does this patch help?
The QComboBox::textChanged signal is only available with Qt3 support,
seems your Solaris Qt is compiled with QT3_SUPPORT.
But this shows up the most ugly part of Qt: no compile time check of
the connection.
--
Peter Kümmel
Index: src/frontends/qt4/QBibtexDialog.C
===================================================================
--- src/frontends/qt4/QBibtexDialog.C (revision 15929)
+++ src/frontends/qt4/QBibtexDialog.C (working copy)
@@ -54,7 +54,7 @@
this, SLOT( browsePressed() ) );
connect(deletePB, SIGNAL( clicked() ),
this, SLOT( deletePressed() ) );
- connect(styleCB, SIGNAL( textChanged(const QString&) ),
+ connect(styleCB, SIGNAL( editTextChanged (const QString&) ),
this, SLOT( change_adaptor() ) );
connect(databaseLW, SIGNAL( itemSelectionChanged() ),
this, SLOT( databaseChanged() ) );