]> ruin.nu Git - hbs.git/blobdiff - bs/ui/roidseditview.ui.h
smaller changes
[hbs.git] / bs / ui / roidseditview.ui.h
index d02b348fb7ad66f72884f4cdc0039c067786b529..55d22b556e3f2c604efcb96f8ba07922ff00a217 100644 (file)
@@ -28,7 +28,7 @@ void RoidsEditView::setValue( const QString & type, unsigned value )
 
 }
 
-void RoidsEditView::slotValueChanged( const QString & s )
+void RoidsEditView::slotValueChanged()
 {
        QString type = sender()->name();
        
@@ -43,7 +43,9 @@ void RoidsEditView::slotValueChanged( const QString & s )
        else if (type == "ScoreEdit")
                type = tr("score");
        test = type;
-    emit changed(type, s.toInt());
+       const QLineEdit *le = dynamic_cast<const QLineEdit*>(sender());
+       if (le)
+           emit changed(type, le->text().toInt());
 }