mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 11:19:18 +01:00
Limit length of the "Set x to y..." menu item. Fixes issue #106
This commit is contained in:
parent
4271122976
commit
16a953af11
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user