summaryrefslogtreecommitdiff
path: root/src/installationmanager.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-06-01 17:14:30 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-06-01 17:14:30 +0200
commit046af63dd55ee4b04d79cb2188f169bd8292aa19 (patch)
tree3078e5aee1f293ec0cad42e485f22638cade4634 /src/installationmanager.cpp
parent4b1b897a140589426c9325f040feee741798c167 (diff)
Remove non-used declarations. Move queryPassword to lambda.
Diffstat (limited to 'src/installationmanager.cpp')
-rw-r--r--src/installationmanager.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp
index 00f06af1..a60e60eb 100644
--- a/src/installationmanager.cpp
+++ b/src/installationmanager.cpp
@@ -125,12 +125,6 @@ void InstallationManager::setURL(QString const &url)
m_URL = url;
}
-void InstallationManager::queryPassword(QString *password)
-{
- *password = QInputDialog::getText(nullptr, tr("Password required"),
- tr("Password"), QLineEdit::Password);
-}
-
bool InstallationManager::extractFiles(QString extractPath, QString title, bool showFilenames)
{
QProgressDialog *installationProgress = new QProgressDialog(m_ParentWidget);
@@ -630,8 +624,8 @@ IPluginInstaller::EInstallResult InstallationManager::install(const QString &fil
// open the archive and construct the directory tree the installers work on
bool archiveOpen = m_ArchiveHandler->open(
fileName.toStdWString(), [this]() {
- QString password;
- queryPassword(&password);
+ QString password = QInputDialog::getText(m_ParentWidget, tr("Password required"),
+ tr("Password"), QLineEdit::Password);
return password.toStdWString();
});
if (!archiveOpen) {