diff --git a/oscar/mainwindow.cpp b/oscar/mainwindow.cpp index 86943fd5..13e61eeb 100644 --- a/oscar/mainwindow.cpp +++ b/oscar/mainwindow.cpp @@ -914,7 +914,8 @@ QList MainWindow::detectCPAPCards() qDebug() << "Drive list size:" << AutoScannerPaths.size(); if ( (lastpath.size()>0) && ( ! AutoScannerPaths.contains(lastpath))) { - AutoScannerPaths.insert(0, lastpath); + if (QFile(lastpath).exists()) + AutoScannerPaths.insert(0, lastpath); } Q_FOREACH(const QString &path, AutoScannerPaths) {