mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Qt: do not create a new playlist if a name was not specified
This commit is contained in:
parent
44eb97206a
commit
3010ef8775
@ -596,10 +596,13 @@ void MainWindow::onPlaylistWidgetContextMenuRequested(const QPoint&)
|
||||
QString newPlaylistPath = playlistDirAbsPath + "/" + name + file_path_str(FILE_PATH_LPL_EXTENSION);
|
||||
QFile file(newPlaylistPath);
|
||||
|
||||
if (file.open(QIODevice::WriteOnly))
|
||||
file.close();
|
||||
if (!name.isEmpty())
|
||||
{
|
||||
if (file.open(QIODevice::WriteOnly))
|
||||
file.close();
|
||||
|
||||
reloadPlaylists();
|
||||
reloadPlaylists();
|
||||
}
|
||||
}
|
||||
else if (selectedItem && selectedAction == hideAction.data())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user