return QString(), when the dialog has been rejected
This commit is contained in:
parent
9cef7705d8
commit
63077e9a33
|
@ -175,7 +175,7 @@ static QString qskSelectSubWindow(
|
||||||
subWindow.setEntries( entries );
|
subWindow.setEntries( entries );
|
||||||
subWindow.setSelectedRow( selectedRow );
|
subWindow.setSelectedRow( selectedRow );
|
||||||
|
|
||||||
QString selectedEntry = subWindow.selectedEntry();
|
QString selectedEntry;
|
||||||
|
|
||||||
qskSetupSubWindow( title, actions, defaultAction, &subWindow );
|
qskSetupSubWindow( title, actions, defaultAction, &subWindow );
|
||||||
if ( subWindow.exec() == QskDialog::Accepted )
|
if ( subWindow.exec() == QskDialog::Accepted )
|
||||||
|
@ -313,8 +313,8 @@ QString QskDialog::select(
|
||||||
{
|
{
|
||||||
#if 1
|
#if 1
|
||||||
// should be parameters
|
// should be parameters
|
||||||
const QskDialog::Actions actions( QskDialog::Ok | QskDialog::Cancel );
|
const auto actions = QskDialog::Ok | QskDialog::Cancel;
|
||||||
const QskDialog::Action defaultAction = QskDialog::Ok;
|
const auto defaultAction = QskDialog::Ok;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( m_data->policy == EmbeddedBox )
|
if ( m_data->policy == EmbeddedBox )
|
||||||
|
|
Loading…
Reference in New Issue