summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--library/lnkproperties.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp
index bd43e21..e8baca6 100644
--- a/library/lnkproperties.cpp
+++ b/library/lnkproperties.cpp
@@ -126,12 +126,14 @@ LnkProperties::~LnkProperties()
void LnkProperties::unlinkLnk()
{
if ( QPEMessageBox::confirmDelete( this, tr("Delete"), lnk->name() ) ) {
if ( QFile::exists(lnk->file()) )
lnk->removeFiles();
+ else
+ QMessageBox::warning( this, tr("Delete"), tr("File does not exist.") );
if ( QFile::exists(lnk->file()) ) {
QMessageBox::warning( this, tr("Delete"), tr("File deletion failed.") );
} else {
reject();
}
}