diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ef52210..3caf91c 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1138,9 +1138,8 @@ void MainWindow::doImport(QList* keys) { return; } - // Pop the first key - QString key = keys->first(); - keys->pop_front(); + // Get the first key + QString key = keys->takeFirst(); bool rescan = keys->isEmpty(); if (key.startsWith("SK") ||