Bug 125421 - kfmclient doesn't load good xml ui file
Summary: kfmclient doesn't load good xml ui file
Status: RESOLVED INTENTIONAL
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 13:50 UTC by Cédric Bellegarde
Modified: 2009-09-21 02:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***