summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore 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
@@ -120,24 +120,26 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent )
120 setCaption( l->file()); 120 setCaption( l->file());
121} 121}
122 122
123LnkProperties::~LnkProperties() 123LnkProperties::~LnkProperties()
124{ 124{
125} 125}
126 126
127void LnkProperties::unlinkLnk() 127void LnkProperties::unlinkLnk()
128{ 128{
129 if ( QPEMessageBox::confirmDelete( this, tr("Delete"), lnk->name() ) ) { 129 if ( QPEMessageBox::confirmDelete( this, tr("Delete"), lnk->name() ) ) {
130 if ( QFile::exists(lnk->file()) ) 130 if ( QFile::exists(lnk->file()) )
131 lnk->removeFiles(); 131 lnk->removeFiles();
132 else
133 QMessageBox::warning( this, tr("Delete"), tr("File does not exist.") );
132 if ( QFile::exists(lnk->file()) ) { 134 if ( QFile::exists(lnk->file()) ) {
133 QMessageBox::warning( this, tr("Delete"), tr("File deletion failed.") ); 135 QMessageBox::warning( this, tr("Delete"), tr("File deletion failed.") );
134 } else { 136 } else {
135 reject(); 137 reject();
136 } 138 }
137 } 139 }
138} 140}
139 141
140 142
141/* 143/*
142 * remove only the link from documents, not also the file 144 * remove only the link from documents, not also the file
143 */ 145 */