Fix a crash when a device can't be connected, and remove some debug noise

This commit is contained in:
David Sansome 2010-07-30 22:19:28 +00:00
parent 24837741e5
commit 06ce5e5253
1 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,6 @@ void OrganiseDialog::SetFilenames(const QStringList& filenames, quint64 total_si
}
ui_->free_space->set_additional_bytes(total_size);
qDebug() << "Total bytes" << total_size;
UpdatePreviews();
}
@ -162,7 +161,9 @@ void OrganiseDialog::UpdatePreviews() {
if (destination.isValid()) {
storage = destination.data(MusicStorage::Role_Storage).value<MusicStorage*>();
has_local_destination = !storage->LocalPath().isEmpty();
if (storage) {
has_local_destination = !storage->LocalPath().isEmpty();
}
}
// Update the format object