diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index b4c9720..3326b11 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -23,6 +23,7 @@
#include "../shared/common.h"
#include "ipcpreviewclient.h"
#include "previewgenerator.h"
+#include "aboutdialog.h"
MainWindow::MainWindow(QWidget *parent, QString socketPath)
: QMainWindow(parent), ui(new Ui::MainWindow), progressDialog(this)
@@ -180,26 +181,13 @@ void MainWindow::connectSignals()
}
}
});
- connect(
- ui->menuAboutAction, &QAction::triggered, this,
- [this](bool checked)
- {
- QString html = "
looqs
";
- html += "Full-text search with previews for your files
";
- html += "Copyright (c) 2018-2022: Albert Schwarzkopf
";
- html += QString("Version: %1
").arg(Common::versionText());
- html += "Contact: looqs at quitesimple dot org
";
- html += "Website: https://quitesimple.org
";
- html +=
- "Source code: https://github.com/quitesimpleorg/looqs
";
- html += "License: GPLv3
";
- html += "looqs is open source and free of charge in the hope it will be useful. The author(s) do not "
- "give any warranty. In the unlikely event of any damage, the author(s) cannot be held responsible. "
- "You are using looqs at your own risk";
+ connect(ui->menuAboutAction, &QAction::triggered, this,
+ [this](bool checked)
+ {
+ AboutDialog aboutDialog(this);
- QMessageBox::about(this, "About looqs", html);
- });
+ aboutDialog.exec();
+ });
connect(ui->menuAboutQtAction, &QAction::triggered, this,
[this](bool checked) { QMessageBox::aboutQt(this, "About Qt"); });
connect(ui->menuSyncIndexAction, &QAction::triggered, this, &MainWindow::startIndexSync);