From 17c44521bef734ff14af9912a3edb7a5ba5460cc Mon Sep 17 00:00:00 2001 From: Duke Date: Wed, 27 Dec 2023 11:59:05 -0500 Subject: [PATCH] Use takeFirst() instead of first() and pop_front() --- src/mainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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") ||