Solving the problem of launching the settings dialog without xine support

The settings dialog crashes if built without xine support.

Signed-off-by: ormorph <roma251078@mail.ru>
(cherry picked from commit 6212c1b319)
r14.1.x
ormorph 1 year ago committed by Michele Calgaro
parent 8527831ef0
commit 6777b854e9
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -435,9 +435,7 @@ KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *parent, PartBase *
layout->addLayout (buttonlayout); layout->addLayout (buttonlayout);
layout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding)); layout->addItem (new TQSpacerItem (5, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding));
connect (m_player, TQT_SIGNAL (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)), this, TQT_SLOT (sourceChanged(KMPlayer::Source*,KMPlayer::Source*))); connect (m_player, TQT_SIGNAL (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)), this, TQT_SLOT (sourceChanged(KMPlayer::Source*,KMPlayer::Source*)));
#ifdef HAVE_XINE
connect (recorder, TQT_SIGNAL (clicked(int)), this, TQT_SLOT(recorderClicked(int))); connect (recorder, TQT_SIGNAL (clicked(int)), this, TQT_SLOT(recorderClicked(int)));
#endif
connect (replay, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (replayClicked (int))); connect (replay, TQT_SIGNAL (clicked (int)), this, TQT_SLOT (replayClicked (int)));
} }
@ -475,7 +473,12 @@ KDE_NO_EXPORT void PrefRecordPage::sourceChanged (Source * olds, Source * nws) {
} }
KDE_NO_EXPORT void PrefRecordPage::recorderClicked (int id) { KDE_NO_EXPORT void PrefRecordPage::recorderClicked (int id) {
bool b = recorder->find(id)->text().find (TQString::fromLatin1("Xine")) > -1; bool b = false;
TQButton *recBtn = recorder->find(id);
if (recBtn)
{
b = recBtn->text().find (TQString::fromLatin1("Xine")) > -1;
}
replay->setEnabled (!b); replay->setEnabled (!b);
if (b) if (b)
replay->setButton (Settings::ReplayNo); replay->setButton (Settings::ReplayNo);

Loading…
Cancel
Save