summaryrefslogtreecommitdiff
path: root/src/downloadlist.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-19 02:47:13 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-22 07:36:38 -0400
commite071dfdfaa369a475a2d93df623c1696feee56ba (patch)
tree4e3f1714558f6ac46f010b1cae561a96c1195c03 /src/downloadlist.cpp
parentaae6d6a5aa8d6b101fcc38388222a8a6e7ee2ec6 (diff)
changed qCritical() to log::error()
removed now unused vlog()
Diffstat (limited to 'src/downloadlist.cpp')
-rw-r--r--src/downloadlist.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp
index 5e698e0e..36bc2b7f 100644
--- a/src/downloadlist.cpp
+++ b/src/downloadlist.cpp
@@ -19,12 +19,13 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "downloadlist.h"
#include "downloadmanager.h"
+#include <log.h>
#include <QEvent>
#include <QColor>
#include <QIcon>
-
#include <QSortFilterProxyModel>
+using namespace MOBase;
DownloadList::DownloadList(DownloadManager *manager, QObject *parent)
: QAbstractTableModel(parent), m_Manager(manager)
@@ -192,7 +193,7 @@ void DownloadList::update(int row)
else if (row < this->rowCount())
emit dataChanged(this->index(row, 0, QModelIndex()), this->index(row, this->columnCount(QModelIndex())-1, QModelIndex()));
else
- qCritical("invalid row %d in download list, update failed", row);
+ log::error("invalid row {} in download list, update failed", row);
}
QString DownloadList::sizeFormat(quint64 size) const