Changeset View
Changeset View
Standalone View
Standalone View
krusader/krslots.cpp
Show First 20 Lines • Show All 384 Lines • ▼ Show 20 Line(s) | |||||
385 | { | 385 | { | ||
386 | if (!KrServices::cmdExist("locate")) { | 386 | if (!KrServices::cmdExist("locate")) { | ||
387 | KMessageBox::error(krApp, i18n("Cannot find the 'locate' command. Please install the " | 387 | KMessageBox::error(krApp, i18n("Cannot find the 'locate' command. Please install the " | ||
388 | "findutils-locate package of GNU, or set its dependencies in " | 388 | "findutils-locate package of GNU, or set its dependencies in " | ||
389 | "Konfigurator")); | 389 | "Konfigurator")); | ||
390 | return; | 390 | return; | ||
391 | } | 391 | } | ||
392 | 392 | | |||
393 | if (LocateDlg::LocateDialog != 0) { | 393 | if (LocateDlg::LocateDialog != nullptr) { | ||
394 | LocateDlg::LocateDialog->showNormal(); | 394 | LocateDlg::LocateDialog->showNormal(); | ||
395 | LocateDlg::LocateDialog->raise(); | 395 | LocateDlg::LocateDialog->raise(); | ||
396 | LocateDlg::LocateDialog->activateWindow(); | 396 | LocateDlg::LocateDialog->activateWindow(); | ||
397 | LocateDlg::LocateDialog->reset(); | 397 | LocateDlg::LocateDialog->reset(); | ||
398 | } else | 398 | } else | ||
399 | LocateDlg::LocateDialog = new LocateDlg(); | 399 | LocateDlg::LocateDialog = new LocateDlg(krApp); | ||
400 | } | 400 | } | ||
401 | 401 | | |||
402 | void KRslots::runTerminal(const QString & dir) | 402 | void KRslots::runTerminal(const QString & dir) | ||
403 | { | 403 | { | ||
404 | KProcess proc; | 404 | KProcess proc; | ||
405 | proc.setWorkingDirectory(dir); | 405 | proc.setWorkingDirectory(dir); | ||
406 | KConfigGroup group(krConfig, "General"); | 406 | KConfigGroup group(krConfig, "General"); | ||
407 | QString term = group.readEntry("Terminal", _Terminal); | 407 | QString term = group.readEntry("Terminal", _Terminal); | ||
▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines |