Port of commit 548519:

Set Singleton=false for the KConfigXT object KVSPrefs.
We can now access the preferences only with DataModel::preferences().
This fixes the syncronisation problems we had with the KVSPrefs, without
the need of KVSPrefs::writeConfig(), KVSPrefs::self()->readConfig()
workarounds, whenever the control flow switches shared library boundaries.

svn path=/trunk/KDE/kdegraphics/kviewshell/plugins/dvi/; revision=548538
remotes/origin/kdvi
Wilfried Huss 20 years ago
parent b22a93e1f8
commit e84014d196
  1. 4
      kdvi_multipage.cpp

@ -413,7 +413,9 @@ DocumentWidget* KDVIMultiPage::createDocumentWidget(PageView *parent, DocumentPa
RenderedDocumentPagePixmap* KDVIMultiPage::createDocumentPagePixmap(JobId id) const
{
return new RenderedDviPagePixmap(id);
RenderedDocumentPagePixmap* page = new RenderedDviPagePixmap(id);
page->setupObservers(dataModel);
return page;
}

Loading…
Cancel
Save