updateTrackDuration(clipInfo.track, moveCommand);
m_commandStack->push(moveCommand);
}
- delete d;
}
+ delete d;
} else {
emit displayMessage(i18n("Item is locked"), ErrorMessage);
}
#if KDE_IS_VERSION(4,3,80)
QPointer<KNS3::DownloadDialog> dialog = new KNS3::DownloadDialog(configFile);
dialog->exec();
- entries = dialog->changedEntries();
+ if (dialog) entries = dialog->changedEntries();
foreach(const KNS3::Entry & entry, entries) {
if (entry.status() == KNS3::Entry::Installed)
kDebug() << "// Installed files: " << entry.installedFiles();
fs->setConfirmOverwrite(true);
fs->setKeepLocation(true);
fs->exec();
- QString path = fs->selectedFile();
+ QString path;
+ if (fs) path = fs->selectedFile();
delete fs;
if (!path.isEmpty()) {
frame.save(path);
fs->setConfirmOverwrite(true);
fs->setKeepLocation(true);
fs->exec();
- url = fs->selectedUrl();
+ if (fs) url = fs->selectedUrl();
delete fs;
}
if (!url.isEmpty()) {