File indexing completed on 2024-05-12 05:37:19

0001 /*
0002     SPDX-FileCopyrightText: 2008 Alex Merry <alex.merry@kdemail.net>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #include "setupdevicejob.h"
0008 
0009 void SetupDeviceJob::setupDone(const QModelIndex &index, bool success)
0010 {
0011     if (index == m_index) {
0012         setError(!success);
0013         emitResult();
0014     }
0015 }
0016 
0017 void SetupDeviceJob::setupError(const QString &message)
0018 {
0019     if (!error() || errorText().isEmpty()) {
0020         setErrorText(message);
0021     }
0022 }
0023 
0024 // vim: sw=4 sts=4 et tw=100