author | zecke <zecke> | 2003-11-21 09:38:45 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-11-21 09:38:45 (UTC) |
commit | 27985e2fcd428f3cb456223b0ec4fe6401551856 (patch) (side-by-side diff) | |
tree | 5f7af13878bff7097de02612162de3dd9669f60f | |
parent | 10ae99b2cbbf3e24f3568367a85b3b2d6c0fa289 (diff) | |
download | opie-27985e2fcd428f3cb456223b0ec4fe6401551856.zip opie-27985e2fcd428f3cb456223b0ec4fe6401551856.tar.gz opie-27985e2fcd428f3cb456223b0ec4fe6401551856.tar.bz2 |
Use TextEdit for open as Text for now until we negotiate on the
service idea
-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 @@ -588,21 +588,20 @@ void Launcher::select( const AppLnk *appLnk ) if ( appLnk->type() == "Folder" ) { // No tr // Not supported: flat is simpler for the user } else { if ( appLnk->exec().isNull() ) { int i = QMessageBox::information(this,tr("No application"), tr("<p>No application is defined for this document." "<p>Type is %1.").arg(appLnk->type()), tr("OK"), tr("View as text"), 0, 0, 1); -#if 0 /* ### Fixme */ if ( i == 1 ) - Global::execute(Service::app("Open/text/*"),appLnk->file()); -#endif + Global::execute("textedit",appLnk->file()); + return; } tabs->setBusy(TRUE); emit executing( appLnk ); appLnk->execute(); } } |