<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Martin, Eeli, All,<br>
<br>
When I debug the program it crashes at this line (See ::openDialog()
below):<br>
m_staticDialog->show();<br>
<br>
This calls qwidget.h <br>
inline void show() { setVisible(true); }<br>
<br>
When I open qwidget.h in KDevelop, it shows syntax errors. I don't
know if this is related or not.<br>
<br>
Sorry, that is all I have been able to find out about this at this time.<br>
<br>
Jim<br>
<br>
<br>
<br>
void CSearchDialog::openDialog(const ListCSwordModuleInfo modules,
const QString& searchText, QWidget* parentDialog)<br>
{<br>
if (!m_staticDialog) {<br>
m_staticDialog = new CSearchDialog(parentDialog);<br>
};<br>
m_staticDialog->reset();<br>
<br>
if (modules.count()) {<br>
m_staticDialog->setModules(modules);<br>
}<br>
else {<br>
m_staticDialog->showModulesSelector();<br>
}<br>
<br>
m_staticDialog->setSearchText(searchText);<br>
if (m_staticDialog->isHidden()) {<br>
m_staticDialog->show();<br>
}<br>
<br>
if (modules.count() && !searchText.isEmpty()) {<br>
m_staticDialog->startSearch();<br>
}<br>
// moved these to after the startSearch() because<br>
// the progress dialog caused them to loose focus.<br>
m_staticDialog->raise();<br>
m_staticDialog->activateWindow();<br>
};<br>
<br>
<br>
Martin Gruner wrote:
<blockquote cite="mid:200803091804.52830.mg.pub@gmx.net" type="cite">
<pre wrap="">Eeli,
I disabled the resize() call. It still hangs.
Can you look again when there is more time?
Thanks,
mg
Am Samstag, 8. März 2008 schrieb Eeli Kaikkonen:
</pre>
<blockquote type="cite">
<pre wrap="">On Sat, 8 Mar 2008, Eeli Kaikkonen wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I can confirm this after upgrading to KDE 4.0.2 and recompiling BT. I
can look at it but have no much time ATM.
</pre>
</blockquote>
<pre wrap="">A quick finding: it's in here:
void CSearchDialog::loadDialogSettings()
{
        qDebug("CSearchDialog::loadDialogSettings start");
        //we don't want to set wrong sizes
        // set the size of the main widget
        CBTConfig::getConfig()->beginGroup("CSearchDialog");
        qDebug("CSearchDialog::loadDialogSettings 1");
        if (CBTConfig::getConfig()->contains("size")) {
                resize(CBTConfig::getConfig()->value("size").toSize());
                qDebug("CSearchDialog::loadDialogSettings 2");
        }
        else {
                qDebug("CSearchDialog::loadDialogSettings 3");
                resize( sizeHint() );
                qDebug("CSearchDialog::loadDialogSettings 3.1");
        }
        qDebug("CSearchDialog::loadDialogSettings 3.2");
        if (CBTConfig::getConfig()->contains("pos")) {
                qDebug("CSearchDialog::loadDialogSettings 4");
                move(CBTConfig::getConfig()->value("pos").toPoint());
        }
        qDebug("CSearchDialog::loadDialogSettings 5");
        CBTConfig::getConfig()->endGroup();
        qDebug("CSearchDialog::loadDialogSettings end");
}
When there is no size saved this goes to the else clause and
resize(sizeHint()) is where it stucks. I don't know what happens if
there is size already saved, i.e. if it's sizeHint() or resize().
Anyways, this may be a bug in KDE (KDialog). But now I'm out of time...
Yours,
        Eeli Kaikkonen (Mr.), Oulu, Finland
        e-mail: <a class="moz-txt-link-abbreviated" href="mailto:eekaikko@mailx.studentx.oulux.fix">eekaikko@mailx.studentx.oulux.fix</a> (with no x)
_______________________________________________
bt-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:bt-devel@crosswire.org">bt-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/bt-devel">http://www.crosswire.org/mailman/listinfo/bt-devel</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
bt-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:bt-devel@crosswire.org">bt-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/bt-devel">http://www.crosswire.org/mailman/listinfo/bt-devel</a>
</pre>
</blockquote>
</body>
</html>