Skip to content

Commit edfbdc3

Browse files
committed
fixup!
1 parent cdba3a0 commit edfbdc3

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/mixxxmainwindow.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,15 +1262,15 @@ void MixxxMainWindow::slotLibraryScanSummaryDlg(const LibraryScanResultSummary&
12621262
return;
12631263
}
12641264

1265-
QMessageBox* pMsg = new QMessageBox();
1266-
pMsg->setTextFormat(Qt::RichText); // required to get bold text with <b> tags
1267-
pMsg->setWindowTitle(tr("Library scan finished"));
1265+
QMessageBox msgBox;
1266+
msgBox.setTextFormat(Qt::RichText); // required to get bold text with <b> tags
1267+
msgBox.setWindowTitle(tr("Library scan finished"));
12681268

12691269
if (result.noDirectoriesConfigured) {
1270-
pMsg->setText(tr("No music directories configured for scanning.") +
1270+
msgBox.setText(tr("No music directories configured for scanning.") +
12711271
QStringLiteral("<br>") +
12721272
tr("Add directories in the library preferences."));
1273-
pMsg->show();
1273+
msgBox.show();
12741274
return;
12751275
}
12761276

@@ -1317,8 +1317,9 @@ void MixxxMainWindow::showMassScanSummaryDlg(const LibraryScanResultSummary& res
13171317
QStringLiteral("</b>");
13181318
}
13191319

1320-
pMsg->setText(summary);
1321-
pMsg->show();
1320+
QMessageBox msgBox;
1321+
msgBox.setText(summary);
1322+
msgBox.show();
13221323
}
13231324

13241325
void MixxxMainWindow::showSingleScanSummaryDlg(const LibraryScanResultSummary& result) {

0 commit comments

Comments
 (0)