Summary: | Crashes when deleting files | ||
---|---|---|---|
Product: | [Unmaintained] quanta | Reporter: | Michael Durrer <pixman> |
Component: | general | Assignee: | András Manţia <amantia> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Michael Durrer
2004-11-04 13:09:02 UTC
CVS commit by amantia: Backport: Don't crash when deleting a file using the context menu [#92676]. BUG: 92676 M +1 -0 ChangeLog 1.295.2.12 M +4 -13 src/quanta.cpp 1.619.2.8 --- kdewebdev/quanta/ChangeLog #1.295.2.11:1.295.2.12 @@ -10,4 +10,5 @@ (for example HTML tables inside XHTML) - fix node tree corruption while parsing scripts inside a tag [#91508] + - don't crash when deleting a file using the context menu [#92676] --- kdewebdev/quanta/src/quanta.cpp #1.619.2.7:1.619.2.8 @@ -3664,19 +3664,10 @@ void QuantaApp::slotDeleteFile(QuantaVie Document *w = view->document(); KURL url = w->url(); -/* if (KMessageBox::questionYesNo(this, - i18n("<qt>Do you really want to delete the file <b>%1</b>?</qt>") - .arg(url.prettyURL(0, KURL::StripFileProtocol)), - i18n("Delete File")) == KMessageBox::Yes) - { - if (KIO::NetAccess::del(url, this)) - { - if (Project::ref()->hasProject()) - Project::ref()->slotRemove(url); - }*/ - if ( QuantaNetAccess::del(url, this, true) ) - { w->setModified(false); //don't ask for save + if (QuantaNetAccess::del(url, this, true)) + { slotFileClose(); - } + } else + w->setModified(modified); } |