summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.cpp5
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
@@ -572,53 +572,52 @@ static bool isVisibleWindow(int wid)
572 return FALSE; 572 return FALSE;
573} 573}
574 574
575void Launcher::viewSelected(const QString& s) 575void Launcher::viewSelected(const QString& s)
576{ 576{
577 setCaption( s + tr(" - Launcher") ); 577 setCaption( s + tr(" - Launcher") );
578} 578}
579 579
580void Launcher::showTab(const QString& id) 580void Launcher::showTab(const QString& id)
581{ 581{
582 tabs->categoryBar->showTab(id); 582 tabs->categoryBar->showTab(id);
583 raise(); 583 raise();
584} 584}
585 585
586void Launcher::select( const AppLnk *appLnk ) 586void 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
609void Launcher::properties( AppLnk *appLnk ) 608void 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
613 } else { 612 } else {
614/* ### libqtopia FIXME also moving docLnks... */ 613/* ### libqtopia FIXME also moving docLnks... */
615 LnkProperties prop(appLnk,0 ); 614 LnkProperties prop(appLnk,0 );
616 615
617 prop.showMaximized(); 616 prop.showMaximized();
618 prop.exec(); 617 prop.exec();
619 } 618 }
620} 619}
621 620
622void Launcher::storageChanged( const QList<FileSystem> &fs ) 621void Launcher::storageChanged( const QList<FileSystem> &fs )
623{ 622{
624 // ### update combo boxes if we had a combo box for the storage type 623 // ### update combo boxes if we had a combo box for the storage type