[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] kopenwith.cpp bugfix and enhancement
From:       Willy De la Court <Willy.DelaCourt () pandora ! be>
Date:       2003-02-11 15:39:04
[Download RAW message or body]

On Tuesday 11 February 2003 16:02, David Faure wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
<SNIP>
Damn i think i finally start to comprehend this nightmare.

>
> Please note that m_command is a member variable (as the m_ indicates), and
> that it's the one that the caller can use, to find out which command to

fine but the caller is going to get into trouble because the m_command is only 
filled in when the "In Terminal" is checked. Is this a problem?

> use. Therefore the new code like
>   m_command = conf.readEntry(QString::fromLatin1("TerminalApplication"),
> QString::fromLatin1("konsole")); (unconditionnally)
> is a very bad idea, since it breaks KOpenWithDlg::text().
>
> The reading of that setting in a single place is a good idea, I would do it
> in a local QString in slotOK. But the code that sets m_command should
> go back to the "if ( in terminal )" case.
>
yes it's getting clearer now i'll rewrite the patch now i only need to find a 
var to assign the nocloseonexit checkbox.

is changing a vars name and type binary compatible?
i think i found one it's 

    QPushButton *clear;

that is never used?

Or is that stretching it?

Now i'm begining to see the complexity of the question why not add a checkbox 
to that dialog!

> - --
> David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se

Small things make people happy. (But they are very hard to implement)
-- 
Willy De la Court

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic