diff --git a/view/mainwindow.cpp b/view/mainwindow.cpp index 594c5ae..998c856 100755 --- a/view/mainwindow.cpp +++ b/view/mainwindow.cpp @@ -219,7 +219,7 @@ void MainWindow::formatDevice() qDebug() << "MainWindow: Device is not mounted, proceeding with format"; } - QVariantMap opt = { { "label", m_mainPage->getLabel() } }; + QVariantMap opt = { { "label", m_mainPage->getLabel() }, { "take-ownership", true } }; if (m_mainPage->shouldErase()) opt["erase"] = "zero"; blk->format(m_mainPage->getSelectedFs(), opt); QDBusError lastError = blk->lastError();