Skip to content

Commit b6e1574

Browse files
authored
triage: fix broken signal-slot when double-clicking result (#5810)
1 parent 4a9b921 commit b6e1574

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/triage/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ bool MainWindow::unpackArchive(const QString &archiveName)
285285
return runProcess("tar", args);
286286
}
287287

288-
void MainWindow::showResult(const QListWidgetItem *item)
288+
void MainWindow::showResult(QListWidgetItem *item)
289289
{
290290
ui->statusBar->clearMessage();
291291
const bool local = item->text().startsWith(DACA2_PACKAGES);

tools/triage/mainwindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public slots:
4747
void loadFile();
4848
void loadFromClipboard();
4949
void filter(const QString& filter);
50-
void showResult(const QListWidgetItem *item);
50+
void showResult(QListWidgetItem *item);
5151
void refreshResults();
5252
void fileTreeFilter(const QString &str);
5353
void findInFilesClicked();

tools/triage/mainwindow.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@
450450
<sender>results</sender>
451451
<signal>itemDoubleClicked(QListWidgetItem*)</signal>
452452
<receiver>MainWindow</receiver>
453-
<slot>showResult(const QListWidgetItem*)</slot>
453+
<slot>showResult(QListWidgetItem*)</slot>
454454
<hints>
455455
<hint type="sourcelabel">
456456
<x>28</x>
@@ -481,7 +481,7 @@
481481
</connections>
482482
<slots>
483483
<slot>loadFile()</slot>
484-
<slot>showResult(const QListWidgetItem*)</slot>
484+
<slot>showResult(QListWidgetItem*)</slot>
485485
<slot>loadFromClipboard()</slot>
486486
<slot>filter(QString)</slot>
487487
<slot>refreshResults()</slot>

0 commit comments

Comments
 (0)