Prefill input dialog with old name when renaming GS playlist

This commit is contained in:
Arnaud Bienner 2011-12-22 20:25:45 +01:00
parent 0af197f6a1
commit cb1b4483ea

View File

@ -1219,7 +1219,8 @@ void GroovesharkService::RenamePlaylist(int playlist_id) {
QString new_name = QInputDialog::getText(NULL, QString new_name = QInputDialog::getText(NULL,
tr("Rename \"%1\" playlist").arg(old_name), tr("Rename \"%1\" playlist").arg(old_name),
tr("Name"), tr("Name"),
QLineEdit::Normal); QLineEdit::Normal,
old_name);
if (new_name.isEmpty()) { if (new_name.isEmpty()) {
return; return;
} }