mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-21 06:13:29 +01:00
Fix a crash when a device can't be connected, and remove some debug noise
This commit is contained in:
parent
24837741e5
commit
06ce5e5253
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user