Limit length of the "Set x to y..." menu item. Fixes issue #106

This commit is contained in:
David Sansome 2010-03-24 14:14:17 +00:00
parent 4271122976
commit 16a953af11
1 changed files with 3 additions and 0 deletions

View File

@ -592,6 +592,9 @@ void MainWindow::PlaylistRightClick(const QPoint& global_pos, const QModelIndex&
QString column_name = Playlist::column_name(column);
QString column_value = playlist_->data(playlist_menu_index_).toString();
if (column_value.length() > 25)
column_value = column_value.left(25) + "...";
ui_.action_selection_set_value->setText(tr("Set %1 to \"%2\"...")
.arg(column_name.toLower()).arg(column_value));