[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/dialogs
From: Gary David Steinert <fatlardo () gmail ! com>
Date: 2009-06-01 15:57:26
Message-ID: 1243871846.597282.11552.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 976409 by gsteinert:
Allow cancelling of rename input box in playlist layout dialog
BUG:193479
M +8 -1 PlaylistLayoutEditDialog.cpp
--- trunk/extragear/multimedia/amarok/src/dialogs/PlaylistLayoutEditDialog.cpp \
#976408:976409 @@ -235,8 +235,15 @@
QString layoutName;
while( layoutName.isEmpty() || m_layoutsMap->keys().contains( layoutName ) )
{
+ bool ok;
layoutName = QInputDialog::getText( this, i18n( "Choose a new name for the \
playlist layout" ),
- i18n( "Please enter a new name for the playlist layout you are \
about to rename:" ) ); + i18n( "Please enter a new name for the \
playlist layout you are about to rename:" ), + QLineEdit::Normal, \
layoutListWidget->currentItem()->text(), &ok); + if ( !ok )
+ {
+ //Cancelled so just return
+ return;
+ } \
if( LayoutManager::instance()->isDefaultLayout( layoutName ) )
{
KMessageBox::sorry( this, i18n( "Cannot rename one of the default \
layouts." ), i18n( "Layout name error" ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic