parent
4703517c75
commit
e57c9d1552
|
@ -123,7 +123,7 @@ int Q_DECL_IMPORT main(int argc, char* argv[])
|
||||||
auto [device, partitionNr] = parseDevice(selectedDevice);
|
auto [device, partitionNr] = parseDevice(selectedDevice);
|
||||||
|
|
||||||
MainWindow* mainWindow = new MainWindow();
|
MainWindow* mainWindow = new MainWindow();
|
||||||
QObject::connect(mainWindow, &MainWindow::scanFinished, mainWindow, [mainWindow, device, selectedDevice, partitionNr] {
|
QObject::connect(mainWindow, &MainWindow::scanFinished, mainWindow, [mainWindow, device = device, selectedDevice, partitionNr = partitionNr] {
|
||||||
if (device.length()) {
|
if (device.length()) {
|
||||||
mainWindow->setCurrentDeviceByName(device);
|
mainWindow->setCurrentDeviceByName(device);
|
||||||
if (partitionNr.length()) {
|
if (partitionNr.length()) {
|
||||||
|
|
Loading…
Reference in New Issue