Changeset View
Changeset View
Standalone View
Standalone View
applets/comic/comic.cpp
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Line(s) | |||||
225 | 225 | | |||
226 | void ComicApplet::updateView() | 226 | void ComicApplet::updateView() | ||
227 | { | 227 | { | ||
228 | updateContextMenu(); | 228 | updateContextMenu(); | ||
229 | } | 229 | } | ||
230 | 230 | | |||
231 | void ComicApplet::getNewComics() | 231 | void ComicApplet::getNewComics() | ||
232 | { | 232 | { | ||
233 | if (mEngine && !m_newStuffDialog) { | 233 | if (!mEngine) { | ||
234 | return; | ||||
235 | } | ||||
236 | if (!m_newStuffDialog) { | ||||
234 | m_newStuffDialog = new KNS3::DownloadDialog( QString::fromLatin1("comic.knsrc") ); | 237 | m_newStuffDialog = new KNS3::DownloadDialog( QString::fromLatin1("comic.knsrc") ); | ||
235 | KNS3::DownloadDialog *strong = m_newStuffDialog.data(); | 238 | KNS3::DownloadDialog *strong = m_newStuffDialog.data(); | ||
236 | strong->setTitle(i18n("Download Comics")); | 239 | strong->setTitle(i18n("Download Comics")); | ||
237 | connect(m_newStuffDialog.data(), SIGNAL(finished(int)), mEngine, SLOT(loadProviders())); | 240 | connect(m_newStuffDialog.data(), SIGNAL(finished(int)), mEngine, SLOT(loadProviders())); | ||
238 | } | 241 | } | ||
239 | m_newStuffDialog.data()->show(); | 242 | m_newStuffDialog.data()->show(); | ||
240 | } | 243 | } | ||
241 | 244 | | |||
▲ Show 20 Lines • Show All 542 Lines • Show Last 20 Lines |