From kde-commits Wed Mar 05 13:35:29 2014 From: Dawit A Date: Wed, 05 Mar 2014 13:35:29 +0000 To: kde-commits Subject: Re: [kdelibs/KDE/4.13] kdewebkit: Handle "Cancel" in the file dialog correctly. Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=139402658311547 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--089e0160c66078ede804f3dc1a9b" --089e0160c66078ede804f3dc1a9b Content-Type: text/plain; charset=UTF-8 Thanks for fixing this. However, shouldn't this have been pushed into the 4.12 branch first since it is a bug fix? On Wed, Mar 5, 2014 at 4:50 AM, David Faure wrote: > Git commit fa77b7702fb698ee0bc74e4818eb4060ca636848 by David Faure. > Committed on 05/03/2014 at 09:49. > Pushed by dfaure into branch 'KDE/4.13'. > > Handle "Cancel" in the file dialog correctly. > > It used to loop in the while(true) and keep popping up the dialog > over and over again. > > No time to look up for bug reports on bugs.kde.org :/ > > CCMAIL: adawit@kde.org > > M +1 -1 kdewebkit/kwebpage.cpp > > http://commits.kde.org/kdelibs/fa77b7702fb698ee0bc74e4818eb4060ca636848 > > diff --git a/kdewebkit/kwebpage.cpp b/kdewebkit/kwebpage.cpp > index 63fd293..04f5081 100644 > --- a/kdewebkit/kwebpage.cpp > +++ b/kdewebkit/kwebpage.cpp > @@ -582,7 +582,7 @@ bool KWebPage::handleReply(QNetworkReply* reply, > QString* contentType, KIO::Meta > return true; > } > if (!downloadResource(replyUrl, suggestedFileName, > d->windowWidget())) > - break; > + return true; // file dialog was cancelled, stop > here > } > return true; > case KParts::BrowserOpenOrSaveQuestion::Cancel: > --089e0160c66078ede804f3dc1a9b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for fixing this. However, shouldn't this have b= een pushed into the 4.12 branch first since it is a bug fix?


On Wed, Mar 5, 2014 at= 4:50 AM, David Faure <faure@kde.org> wrote:
Git commit fa77b7702fb698ee0bc74e4818eb4060c= a636848 by David Faure.
Committed on 05/03/2014 at 09:49.
Pushed by dfaure into branch 'KDE/4.13'.

Handle "Cancel" in the file dialog correctly.

It used to loop in the while(true) and keep popping up the dialog
over and over again.

No time to look up for bug reports on bugs.kde.org :/

CCMAIL: adawit@kde.org

M =C2=A0+1 =C2=A0 =C2=A0-1 =C2=A0 =C2=A0kdewebkit/kwebpage.cpp

http://commits.kde.org/kdelibs/fa77b7702fb698ee0= bc74e4818eb4060ca636848

diff --git a/kdewebkit/kwebpage.cpp b/kdewebkit/kwebpage.cpp
index 63fd293..04f5081 100644
--- a/kdewebkit/kwebpage.cpp
+++ b/kdewebkit/kwebpage.cpp
@@ -582,7 +582,7 @@ bool KWebPage::handleReply(QNetworkReply* reply, QStrin= g* contentType, KIO::Meta
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return true;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0if (!downloadResource(replyUrl, suggestedFileName, d->windowWidget())= )
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0break;
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0return true; // file dialog was cancelled, stop here
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return true;<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0case KParts::BrowserOpenOrS= aveQuestion::Cancel:

--089e0160c66078ede804f3dc1a9b--