diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8ef4fee..5368b1c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -125,13 +125,13 @@ MainWindow::MainWindow(AppSettings *settings, Benchmark *benchmark, QWidget *par // Add home dir if (!isSomeDeviceMountAsHome) { - QStorageInfo storage = QStorageInfo::root(); + QString path = QDir::homePath(); + + QStorageInfo storage(path); quint64 total = storage.bytesTotal(); quint64 available = storage.bytesAvailable(); - QString path = QDir::homePath(); - QStringList volumeInfo = { path, DiskDriveInfo::Instance().getModelName(storage.device()) }; ui->comboBox_Dirs->insertItem(0,