diff options
author | ormorph <[email protected]> | 2023-11-27 18:20:07 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-28 20:28:16 +0900 |
commit | 6777b854e947787000624b832b22798a6400799c (patch) | |
tree | c5260ad735e1e9ccf00ba8cc361afb6f8a3583be /src | |
parent | 8527831ef009831f28dd204d00fcbb92ab3ab7b3 (diff) | |
download | kmplayer-6777b854e947787000624b832b22798a6400799c.tar.gz kmplayer-6777b854e947787000624b832b22798a6400799c.zip |
Solving the problem of launching the settings dialog without xine support
The settings dialog crashes if built without xine support.
Signed-off-by: ormorph <[email protected]>
(cherry picked from commit 6212c1b319a59450c44c9bb212cf7dce5df23c3e)
Diffstat (limited to 'src')
-rw-r--r-- | src/pref.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pref.cpp b/src/pref.cpp index f3301b4..bd9debd 100644 --- a/src/pref.cpp +++ b/src/pref.cpp @@ -435,9 +435,7 @@ KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *parent, PartBase * layout->addLayout (buttonlayout); 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*))); -#ifdef HAVE_XINE connect (recorder, TQT_SIGNAL (clicked(int)), this, TQT_SLOT(recorderClicked(int))); -#endif 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) { - 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); if (b) replay->setButton (Settings::ReplayNo); |