-rw-r--r-- | library/lnkproperties.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp index abd430c..ebfd4bf 100644 --- a/library/lnkproperties.cpp +++ b/library/lnkproperties.cpp | |||
@@ -96,48 +96,49 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) | |||
96 | d->duplicate->hide(); | 96 | d->duplicate->hide(); |
97 | d->beam->hide(); | 97 | d->beam->hide(); |
98 | d->hline->hide(); | 98 | d->hline->hide(); |
99 | d->locationLabel->hide(); | 99 | d->locationLabel->hide(); |
100 | d->locationCombo->hide(); | 100 | d->locationCombo->hide(); |
101 | 101 | ||
102 | // Can't edit categories, since the app .desktop files are global, | 102 | // Can't edit categories, since the app .desktop files are global, |
103 | // possibly read-only. | 103 | // possibly read-only. |
104 | d->categoryEdit->hide(); | 104 | d->categoryEdit->hide(); |
105 | 105 | ||
106 | d->docname->setReadOnly( TRUE ); | 106 | d->docname->setReadOnly( TRUE ); |
107 | 107 | ||
108 | if ( l->property("CanFastload") == "0" ) | 108 | if ( l->property("CanFastload") == "0" ) |
109 | d->preload->hide(); | 109 | d->preload->hide(); |
110 | 110 | ||
111 | Config cfg("Launcher"); | 111 | Config cfg("Launcher"); |
112 | cfg.setGroup("Preload"); | 112 | cfg.setGroup("Preload"); |
113 | QStringList apps = cfg.readListEntry("Apps",','); | 113 | QStringList apps = cfg.readListEntry("Apps",','); |
114 | d->preload->setChecked( apps.contains(l->exec()) ); | 114 | d->preload->setChecked( apps.contains(l->exec()) ); |
115 | if ( Global::isBuiltinCommand(lnk->exec()) ) | 115 | if ( Global::isBuiltinCommand(lnk->exec()) ) |
116 | d->preload->hide(); // builtins are always fast | 116 | d->preload->hide(); // builtins are always fast |
117 | 117 | ||
118 | currentLocation = 0; // apps not movable (yet) | 118 | currentLocation = 0; // apps not movable (yet) |
119 | } | 119 | } |
120 | setCaption( l->file()); | ||
120 | } | 121 | } |
121 | 122 | ||
122 | LnkProperties::~LnkProperties() | 123 | LnkProperties::~LnkProperties() |
123 | { | 124 | { |
124 | } | 125 | } |
125 | 126 | ||
126 | void LnkProperties::unlinkLnk() | 127 | void LnkProperties::unlinkLnk() |
127 | { | 128 | { |
128 | if ( QPEMessageBox::confirmDelete( this, tr("Delete"), lnk->name() ) ) { | 129 | if ( QPEMessageBox::confirmDelete( this, tr("Delete"), lnk->name() ) ) { |
129 | lnk->removeFiles(); | 130 | lnk->removeFiles(); |
130 | if ( QFile::exists(lnk->file()) ) { | 131 | if ( QFile::exists(lnk->file()) ) { |
131 | QMessageBox::warning( this, tr("Delete"), tr("File deletion failed.") ); | 132 | QMessageBox::warning( this, tr("Delete"), tr("File deletion failed.") ); |
132 | } else { | 133 | } else { |
133 | reject(); | 134 | reject(); |
134 | } | 135 | } |
135 | } | 136 | } |
136 | } | 137 | } |
137 | 138 | ||
138 | 139 | ||
139 | /* | 140 | /* |
140 | * remove only the link from documents, not also the file | 141 | * remove only the link from documents, not also the file |
141 | */ | 142 | */ |
142 | void LnkProperties::unlinkIcon() | 143 | void LnkProperties::unlinkIcon() |
143 | { | 144 | { |