summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorredsky17 <joedonofry@gmail.com>2019-01-26 18:11:30 +0000
committerredsky17 <joedonofry@gmail.com>2019-01-26 18:11:30 +0000
commitfaff23ed386113f26d422ad10448d3b9e4951bf5 (patch)
tree5d6750ac29c87880bb5f4c372550a73033813606 /src
parentAdd initial support for QtIndenticon (diff)
downloadnheko-faff23ed386113f26d422ad10448d3b9e4951bf5.tar.xz
Fix lint issues in last commit
Diffstat (limited to 'src')
-rw-r--r--src/MainWindow.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 8da7d659..7d9a8902 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -17,9 +17,9 @@
 
 #include <QApplication>
 #include <QLayout>
+#include <QPluginLoader>
 #include <QSettings>
 #include <QShortcut>
-#include <QPluginLoader>
 
 #include <mtx/requests.hpp>
 
@@ -488,23 +488,23 @@ MainWindow::showDialog(QWidget *dialog)
 bool
 MainWindow::loadJdenticonPlugin()
 {
-    QDir pluginsDir(qApp->applicationDirPath());
-
-    bool plugins = pluginsDir.cd("plugins");
-    if (plugins) {
-        foreach (QString fileName, pluginsDir.entryList(QDir::Files)) {
-                QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName));
-                QObject *plugin = pluginLoader.instance();
-                if (plugin) {
-                        jdenticonInteface_ = qobject_cast<JdenticonInterface *>(plugin);
-                        if (jdenticonInteface_) {
-                                nhlog::ui()->info("Found jdenticon plugin.");
-                                return true;
+        QDir pluginsDir(qApp->applicationDirPath());
+
+        bool plugins = pluginsDir.cd("plugins");
+        if (plugins) {
+                foreach (QString fileName, pluginsDir.entryList(QDir::Files)) {
+                        QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName));
+                        QObject *plugin = pluginLoader.instance();
+                        if (plugin) {
+                                jdenticonInteface_ = qobject_cast<JdenticonInterface *>(plugin);
+                                if (jdenticonInteface_) {
+                                        nhlog::ui()->info("Found jdenticon plugin.");
+                                        return true;
+                                }
                         }
                 }
         }
-    }
 
-    nhlog::ui()->info("jdenticon plugin not found.");
-    return false;
+        nhlog::ui()->info("jdenticon plugin not found.");
+        return false;
 }
\ No newline at end of file