-rw-r--r-- | core/launcher/launcher.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 344cd46..bdddd37 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp | |||
@@ -584,29 +584,28 @@ void Launcher::showTab(const QString& id) | |||
584 | } | 584 | } |
585 | 585 | ||
586 | void Launcher::select( const AppLnk *appLnk ) | 586 | void Launcher::select( const AppLnk *appLnk ) |
587 | { | 587 | { |
588 | if ( appLnk->type() == "Folder" ) { // No tr | 588 | if ( appLnk->type() == "Folder" ) { // No tr |
589 | // Not supported: flat is simpler for the user | 589 | // Not supported: flat is simpler for the user |
590 | } else { | 590 | } else { |
591 | if ( appLnk->exec().isNull() ) { | 591 | if ( appLnk->exec().isNull() ) { |
592 | int i = QMessageBox::information(this,tr("No application"), | 592 | int i = QMessageBox::information(this,tr("No application"), |
593 | tr("<p>No application is defined for this document." | 593 | tr("<p>No application is defined for this document." |
594 | "<p>Type is %1.").arg(appLnk->type()), tr("OK"), tr("View as text"), 0, 0, 1); | 594 | "<p>Type is %1.").arg(appLnk->type()), tr("OK"), tr("View as text"), 0, 0, 1); |
595 | 595 | ||
596 | #if 0 | ||
597 | /* ### Fixme */ | 596 | /* ### Fixme */ |
598 | if ( i == 1 ) | 597 | if ( i == 1 ) |
599 | Global::execute(Service::app("Open/text/*"),appLnk->file()); | 598 | Global::execute("textedit",appLnk->file()); |
600 | #endif | 599 | |
601 | return; | 600 | return; |
602 | } | 601 | } |
603 | tabs->setBusy(TRUE); | 602 | tabs->setBusy(TRUE); |
604 | emit executing( appLnk ); | 603 | emit executing( appLnk ); |
605 | appLnk->execute(); | 604 | appLnk->execute(); |
606 | } | 605 | } |
607 | } | 606 | } |
608 | 607 | ||
609 | void Launcher::properties( AppLnk *appLnk ) | 608 | void Launcher::properties( AppLnk *appLnk ) |
610 | { | 609 | { |
611 | if ( appLnk->type() == "Folder" ) { // No tr | 610 | if ( appLnk->type() == "Folder" ) { // No tr |
612 | // Not supported: flat is simpler for the user | 611 | // Not supported: flat is simpler for the user |