From 28baba8ec88beb54bb7ff642dc1ad0c95e7c9486 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Wed, 16 May 2018 17:49:12 +0200 Subject: [PATCH] Fix icons in Export SQL dialog Fix the type icons in the Export SQL dialog which weren't show before. --- src/ExportSqlDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExportSqlDialog.cpp b/src/ExportSqlDialog.cpp index 96ba4448..a483d07e 100644 --- a/src/ExportSqlDialog.cpp +++ b/src/ExportSqlDialog.cpp @@ -30,7 +30,7 @@ ExportSqlDialog::ExportSqlDialog(DBBrowserDB* db, QWidget* parent, const QString // Get list of tables to export objectMap objects = pdb->getBrowsableObjects("main"); for(auto it=objects.constBegin();it!=objects.constEnd();++it) - ui->listTables->addItem(new QListWidgetItem(QIcon(QString(":icons/%1").arg((*it)->type())), (*it)->name())); + ui->listTables->addItem(new QListWidgetItem(QIcon(QString(":icons/%1").arg(sqlb::Object::typeToString((*it)->type()))), (*it)->name())); // Sort list of tables and select the table specified in the // selection parameter or all tables if table not specified