summaryrefslogtreecommitdiff
path: root/libopie/big-screen/omodalhelper.cpp
Unidiff
Diffstat (limited to 'libopie/big-screen/omodalhelper.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie/big-screen/omodalhelper.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libopie/big-screen/omodalhelper.cpp b/libopie/big-screen/omodalhelper.cpp
index e3d1c70..c5a47b3 100644
--- a/libopie/big-screen/omodalhelper.cpp
+++ b/libopie/big-screen/omodalhelper.cpp
@@ -76,7 +76,7 @@ void OModalHelperControler::done( int result ) {
76 if ( sender() && !sender()->isA("OModalQueuedDialog") ) 76 if ( sender() && !sender()->isA("OModalQueuedDialog") )
77 m_dia = static_cast<QDialog*>( sender() ); 77 m_dia = static_cast<QDialog*>( sender() );
78 78
79 m_base->done( m_id ); 79 m_base->done( result, m_id );
80} 80}
81 81
82void OModalHelperControler::next() { 82void OModalHelperControler::next() {
@@ -155,6 +155,11 @@ void OModalQueuedDialog::setRecord( int record, int count ) {
155 }else 155 }else
156 show(); 156 show();
157 157
158 if ( count > 1 )
159 m_bar->show();
160 else
161 m_bar->hide();
162
158 m_bar->setText( tr("Editing record %1 out of %2", 163 m_bar->setText( tr("Editing record %1 out of %2",
159 "Shows the current edited record out of an array of records").arg( record ). arg( count ) ); 164 "Shows the current edited record out of an array of records").arg( record ). arg( count ) );
160} 165}