Update src/yuzu/main.cpp
Co-authored-by: Tobias <thm.frey@gmail.com>
This commit is contained in:
parent
ec1345e1da
commit
909eafafa2
1 changed files with 1 additions and 1 deletions
|
@ -2876,7 +2876,7 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
|
||||||
if (target == GameListShortcutTarget::Desktop) {
|
if (target == GameListShortcutTarget::Desktop) {
|
||||||
const auto desktop_path = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
|
const auto desktop_path = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
|
||||||
target_directory = desktopPath.toUtf8().toStdString();
|
target_directory = desktopPath.toUtf8().toStdString();
|
||||||
QDir dir(QString::fromStdString(target_directory.generic_string()));
|
const QDir dir(QString::fromStdString(target_directory.generic_string()));
|
||||||
if (!dir.exists()) {
|
if (!dir.exists()) {
|
||||||
QMessageBox::critical(
|
QMessageBox::critical(
|
||||||
this, tr("Create Shortcut"),
|
this, tr("Create Shortcut"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue