Skip to content

Commit

Permalink
ignore new devices attached to the system in certain situations
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavio Castelli committed Nov 6, 2009
1 parent 8e88214 commit c8f4160
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,13 @@ void MainWindow::setupConnections()

void MainWindow::slotChangeDisk()
{
m_wizardInProgress = true;
ChangeDiskDialog dialog(this);
if (dialog.exec() == QDialog::Accepted) {
QString selectedUDI = dialog.selectedUDI();
kDebug() << "new uDI" << selectedUDI;
}
m_wizardInProgress = false;
}

void MainWindow::slotStartBackupWizard()
Expand Down Expand Up @@ -400,7 +402,8 @@ void MainWindow::scheduleNextPurgeOperation(int whithinSeconds)

void MainWindow::slotNewDeviceAttached()
{
if (m_wizardInProgress)
Settings* settings = Settings::global();
if ((m_wizardInProgress) || (settings->isBackupDeviceConfigured()))
return;

// we don't have a backup disk, maybe we can use this one
Expand Down

0 comments on commit c8f4160

Please sign in to comment.