triage: fix broken signal-slot when double-clicking result (#5810)

This commit is contained in:
Daniel Marjamäki 2023-12-27 12:25:40 +01:00 committed by GitHub
parent 4a9b921ccf
commit b6e157408c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -285,7 +285,7 @@ bool MainWindow::unpackArchive(const QString &archiveName)
return runProcess("tar", args);
}
void MainWindow::showResult(const QListWidgetItem *item)
void MainWindow::showResult(QListWidgetItem *item)
{
ui->statusBar->clearMessage();
const bool local = item->text().startsWith(DACA2_PACKAGES);

View File

@ -47,7 +47,7 @@ public slots:
void loadFile();
void loadFromClipboard();
void filter(const QString& filter);
void showResult(const QListWidgetItem *item);
void showResult(QListWidgetItem *item);
void refreshResults();
void fileTreeFilter(const QString &str);
void findInFilesClicked();

View File

@ -450,7 +450,7 @@
<sender>results</sender>
<signal>itemDoubleClicked(QListWidgetItem*)</signal>
<receiver>MainWindow</receiver>
<slot>showResult(const QListWidgetItem*)</slot>
<slot>showResult(QListWidgetItem*)</slot>
<hints>
<hint type="sourcelabel">
<x>28</x>
@ -481,7 +481,7 @@
</connections>
<slots>
<slot>loadFile()</slot>
<slot>showResult(const QListWidgetItem*)</slot>
<slot>showResult(QListWidgetItem*)</slot>
<slot>loadFromClipboard()</slot>
<slot>filter(QString)</slot>
<slot>refreshResults()</slot>