mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-11 06:27:45 +00:00
CExportGameDialog: Remove redundant QString conversion
We can just use QFileInfo here.
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
#include <QFileDialog>
|
#include <QFileInfo>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QtConcurrentRun>
|
#include <QtConcurrentRun>
|
||||||
@@ -33,8 +33,8 @@ CExportGameDialog::CExportGameDialog(const QString& rkIsoPath, const QString& rk
|
|||||||
mpExporter = std::make_unique<CGameExporter>(mDiscType, mGame, mWiiFrontend, mRegion, mGameTitle, mGameID, mBuildVer);
|
mpExporter = std::make_unique<CGameExporter>(mDiscType, mGame, mWiiFrontend, mRegion, mGameTitle, mGameID, mBuildVer);
|
||||||
InitUI(rkExportDir);
|
InitUI(rkExportDir);
|
||||||
|
|
||||||
TString IsoName = TO_TSTRING(rkIsoPath).GetFileName();
|
const auto IsoName = QFileInfo(rkIsoPath).fileName();
|
||||||
setWindowTitle(tr("Export Settings - %1").arg(TO_QSTRING(IsoName)));
|
setWindowTitle(tr("Export Settings - %1").arg(IsoName));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user