summaryrefslogtreecommitdiff
authorzecke <zecke>2003-11-21 09:38:45 (UTC)
committer zecke <zecke>2003-11-21 09:38:45 (UTC)
commit27985e2fcd428f3cb456223b0ec4fe6401551856 (patch) (side-by-side diff)
tree5f7af13878bff7097de02612162de3dd9669f60f
parent10ae99b2cbbf3e24f3568367a85b3b2d6c0fa289 (diff)
downloadopie-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
Diffstat (more/less context) (show 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
@@ -584,29 +584,28 @@ void Launcher::showTab(const QString& id)
}
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();
}
}
void Launcher::properties( AppLnk *appLnk )
{
if ( appLnk->type() == "Folder" ) { // No tr
// Not supported: flat is simpler for the user