File Open/Save not remembering Simple/Detail setting.
Gary Cramblitt
garycramblitt at comcast.net
Tue Nov 7 23:14:03 GMT 2006
On Tuesday 07 November 2006 07:49, Carsten Pfeiffer wrote:
> On Monday 06 November 2006 00:22, Gary Cramblitt wrote:
> > The KDE File Open/Save dialog does not remember the Simple/Detail
> > setting. Attached patch fixes. OK to commit?
>
> Not sure if this is the right way, the constructor only sets the default
> value. KDirOperator::readConfig() should read the configuration and store
> it in the 'defaultView' member. KFileDialog later explicitly calls
> diroperator->setView( KFile::Default ), taking the 'defaultView' into
> account. I'd guess that something else is broken, so that the call setView(
> KFile::Default ) somehow doesn't happen.
I think you're right, but I haven't been able to determine what. There's a
routine called connectView. The first thing it does is to save the current
view settings, then load them into the new view. Since the initial view is
KFile::Simple, this always means the new view will be KFile::Simple.
Changing the constructor to set KFile::Default instead of KFile::Simple works
around this problem.
This problem does not occur in the 3.5 branches, so something changed in
trunk. I will try to figure out what.
--
Gary Cramblitt (aka PhantomsDad)
More information about the kde-core-devel
mailing list