Fix cast warnings with MSVC
This commit is contained in:
@@ -78,7 +78,7 @@ Organize::Organize(const SharedPtr<TaskManager> task_manager,
|
||||
overwrite_(overwrite),
|
||||
albumcover_(albumcover),
|
||||
eject_after_(eject_after),
|
||||
task_count_(songs_info.count()),
|
||||
task_count_(static_cast<quint64>(songs_info.count())),
|
||||
playlist_(playlist),
|
||||
tasks_complete_(0),
|
||||
started_(false),
|
||||
@@ -355,7 +355,7 @@ void Organize::UpdateProgress() {
|
||||
// Add the progress of the track that's currently copying
|
||||
progress += current_copy_progress_;
|
||||
|
||||
task_manager_->SetTaskProgress(task_id_, progress, total);
|
||||
task_manager_->SetTaskProgress(task_id_, static_cast<quint64>(progress), total);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -499,8 +499,8 @@ void OrganizeDialog::UpdatePreviews() {
|
||||
}
|
||||
|
||||
// Update the free space bar
|
||||
quint64 capacity = destination.data(MusicStorage::Role_Capacity).toLongLong();
|
||||
quint64 free = destination.data(MusicStorage::Role_FreeSpace).toLongLong();
|
||||
quint64 capacity = destination.data(MusicStorage::Role_Capacity).toULongLong();
|
||||
quint64 free = destination.data(MusicStorage::Role_FreeSpace).toULongLong();
|
||||
|
||||
if (capacity > 0) {
|
||||
ui_->free_space->show();
|
||||
|
||||
Reference in New Issue
Block a user