Bug 125421

Summary: kfmclient doesn't load good xml ui file
Product: [Applications] konqueror Reporter: Cédric Bellegarde <web>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cédric Bellegarde 2006-04-12 13:50:53 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Ubuntu Packages
OS:                Linux

I'm currently writing a doc for "Kde France", i was searching a way to have different rc file for konqueror profiles.

so i put this in .kde/share/apps/konqueror/profiles/webbrowsing :
XMLUIFile=web.rc

It works but there is a bug with kfmclient and preloaded konqueror.

kfmclient do a dcop call like this:
dcop konqueror-32742  KonquerorIface createBrowserWindowFromProfile /home/gnumdk/.kde/share/apps/konqueror/profiles/webbrowsing

and it open konqueror.rc instead of web.rc when you have preloaded konqeror.

I look a the code, the problem is in:
KonqMainWindow * KonqMisc::createBrowserWindowFromProfile()     (konq_misc.cc, 100).

I add a "setUiFile" public member in konq_mainwindow.cc to be able to reread xml ui file:
void KonqMainWindow::setUiFile(const QString& uiFile)
{
    setXMLFile(uiFile);
    reloadXML();
}

I call this function in KonqMisc::createBrowserWindowFromProfile() but it doesn't work :(

I have no idea how to force konqMainWindow to reload the xml ui file.

Thanx for any help or for a fix :)
Comment 1 Cédric Bellegarde 2006-08-30 09:56:11 UTC
*** This bug has been confirmed by popular vote. ***