~manchicken/adept/updater-changelog-viewer

« back to all changes in this revision

Viewing changes to adept/adept/packagedetails.cpp

  • Committer: Development User
  • Date: 2007-02-23 02:13:09 UTC
  • Revision ID: devuser@larry-20070223021309-vow1g8ikex7ell38
Moved the changelog object to a global object to make things a little more scalable.  Still can't figure why it's segfaulting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
#ifdef KUBUNTU
170
170
    // Lets go ahead and stick the changelog in there....
171
171
    try {
172
 
      ItemChangelog* chngs = new ItemChangelog(p);
 
172
      global_changelog->setParent(p);
173
173
      m_changelog->setText(i18n("Loading..."));
174
 
      connect(dynamic_cast<QObject*>(chngs), SIGNAL( changelogReady(QString) ),
 
174
      connect(dynamic_cast<QObject*>(global_changelog), SIGNAL( changelogReady(QString) ),
175
175
              dynamic_cast<QObject*>(this), SLOT( changelogDisplay(QString) ));
176
176
      connect(dynamic_cast<QObject*>(this), SIGNAL( requestTheChangelog() ),
177
 
              dynamic_cast<QObject*>(chngs), SIGNAL( changelogNeeded() ));
 
177
              dynamic_cast<QObject*>(global_changelog), SIGNAL( changelogNeeded() ));
178
178
      emit requestTheChangelog();
179
179
    } catch (...) {};
180
180
#endif /* KUBUNTU */