From kde-devel Sat Oct 18 03:03:10 2008 From: "Michael Howell" Date: Sat, 18 Oct 2008 03:03:10 +0000 To: kde-devel Subject: Re: Fix for kfilewidget.cpp Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=122429906626386 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1515289699==" --===============1515289699== Content-Type: multipart/alternative; boundary="----=_Part_111226_21693597.1224298990977" ------=_Part_111226_21693597.1224298990977 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > Could it be the "kfiledialog:///OpenDialog" that triggers a problem? Nope. The KFileWidget documentaion explicitly says what this does: "An URL starting with 'kfiledialog:///' to start in the directory last used by a filedialog in the same application that specified the same keyword." On 10/17/08, Cyrille Berger wrote: > > On Friday 17 October 2008, David Boosalis wrote: > > Rafael. > > Maybe some one more intimate with kword can address this issue. I've > seen > > this problem for sometime with koffice in SVN and that's why I peaked a > > little under the covers to see what it is the matter. Eventually they > have > > to address it, or maybe it's just my system and this is all a mute point. > > Nope it's not just your system, well, at least I have heard other people > having crash in kfilewidget at startup. > > As for the fancy things we do: > > m_fileWidget = new KFileWidget(KUrl("kfiledialog:///OpenDialog"), > this); > m_fileWidget->setOperationMode(KFileWidget::Opening); > m_fileWidget->setFilter(mimeFilter.join(" ")); > layout->addWidget(m_fileWidget, 0, 0, 1, -1); > > > and later: > > m_fileWidget->accept(); > emit openExistingUrl(m_fileWidget->selectedUrl()); > > Could it be the "kfiledialog:///OpenDialog" that triggers a problem ? (no > idea > what it is suppose to mean, all I can say is that we have been using that > start url for more than 3 years now ;) ) > > > -- > > Cyrille Berger > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > -- Michael Howell mhowell123@gmail.com ------=_Part_111226_21693597.1224298990977 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > Could it be the "kfiledialog:///OpenDialog" that triggers a problem?
Nope. The KFileWidget documentaion explicitly says what this does: "An URL starting with 'kfiledialog:///<keyword>' to start in the directory last used by a filedialog in the same application that specified the same keyword."

On 10/17/08, Cyrille Berger <cberger@cberger.net> wrote:
On Friday 17 October 2008, David Boosalis wrote:
> Rafael.
> Maybe some one more intimate with kword can address this issue.  I've seen
> this problem for sometime with koffice in SVN and that's why I peaked a
> little under the covers to see what it is the matter.  Eventually they have
> to address it, or maybe it's just my system and this is all a mute point.

Nope it's not just your system, well, at least I have heard other people
having crash in kfilewidget at startup.

As for the fancy things we do:

    m_fileWidget = new KFileWidget(KUrl("kfiledialog:///OpenDialog"), this);
    m_fileWidget->setOperationMode(KFileWidget::Opening);
    m_fileWidget->setFilter(mimeFilter.join(" "));
    layout->addWidget(m_fileWidget, 0, 0, 1, -1);


and later:

    m_fileWidget->accept();
    emit openExistingUrl(m_fileWidget->selectedUrl());

Could it be the "kfiledialog:///OpenDialog" that triggers a problem ? (no idea
what it is suppose to mean, all I can say is that we have been using that
start url for more than 3 years now ;) )


--

Cyrille Berger


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<



--
Michael Howell
mhowell123@gmail.com ------=_Part_111226_21693597.1224298990977-- --===============1515289699== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1515289699==--