Port of commit 548541:

Fix crash in the DVI plugin, that was introduced by my last commit.

svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=548542
remotes/origin/kdvi
Wilfried Huss 20 years ago
parent e84014d196
commit ecfa0ef5fd
  1. 11
      kdvi_multipage.cpp
  2. 2
      kdvi_multipage.h

@ -70,8 +70,6 @@ KDVIMultiPage::KDVIMultiPage(QObject *parent, const QStringList& args)
setXMLFile("kdvi_part.rc");
preferencesChanged();
enableActions(false);
// Show tip of the day, when the first main window is shown.
QTimer::singleShot(0,this,SLOT(showTipOnStart()));
@ -89,6 +87,15 @@ KDVIMultiPage::~KDVIMultiPage()
}
void KDVIMultiPage::setupObservers(DataModel* _dataModel)
{
KMultiPage::setupObservers(_dataModel);
//FIXME: check if this is really needed anymore.
preferencesChanged();
}
KAboutData* KDVIMultiPage::createAboutData()
{
KAboutData* about = new KAboutData("kdvi", I18N_NOOP("KDVI"), "1.3",

@ -20,6 +20,8 @@ public:
KDVIMultiPage(QObject *parent, const QStringList& args = QStringList());
virtual ~KDVIMultiPage();
virtual void setupObservers(DataModel*);
// Interface definition start ------------------------------------------------
/// returns the list of supported file formats

Loading…
Cancel
Save