Skip to content

Commit

Permalink
fix home dir device recognize
Browse files Browse the repository at this point in the history
  • Loading branch information
JonMagon committed Sep 4, 2020
1 parent 481f1d8 commit 077dc1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 077dc1c

Please sign in to comment.