-rw-r--r-- | core/apps/textedit/textedit.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 5edf102..59a605a 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -385,3 +385,2 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) | |||
385 | editor-> setFont ( defaultFont ); | 385 | editor-> setFont ( defaultFont ); |
386 | |||
387 | // updateCaption(); | 386 | // updateCaption(); |
@@ -701,3 +700,4 @@ void TextEdit::openFile( const QString &f ) { | |||
701 | // bFromDocView = true; | 700 | // bFromDocView = true; |
702 | if(f.find(".desktop",0,true) != -1 && !openDesktop ) { | 701 | if(f.find(".desktop",0,true) != -1 && !openDesktop ) |
702 | { | ||
703 | switch ( QMessageBox::warning(this,tr("Text Editor"), | 703 | switch ( QMessageBox::warning(this,tr("Text Editor"), |
@@ -705,7 +705,8 @@ void TextEdit::openFile( const QString &f ) { | |||
705 | file.<BR>Open <B>.desktop</B> file or <B>linked</B> file?"), | 705 | file.<BR>Open <B>.desktop</B> file or <B>linked</B> file?"), |
706 | tr(".desktop File"),tr("Linked Document"),0,1,1) ) { | 706 | tr(".desktop File"),tr("Linked Document"),0,1,1) ) |
707 | case 0: | 707 | { |
708 | case 0: //desktop | ||
708 | filer = f; | 709 | filer = f; |
709 | break; | 710 | break; |
710 | case 1: | 711 | case 1: //linked |
711 | DocLnk sf(f); | 712 | DocLnk sf(f); |
@@ -713,7 +714,13 @@ file.<BR>Open <B>.desktop</B> file or <B>linked</B> file?"), | |||
713 | break; | 714 | break; |
715 | }; | ||
714 | } | 716 | } |
715 | } else if(fi.baseName().left(1) == "") { | 717 | else if(fi.baseName().left(1) == "") |
718 | { | ||
719 | qDebug("opening dotfile"); | ||
716 | currentFileName=f; | 720 | currentFileName=f; |
717 | openDotFile(currentFileName); | 721 | openDotFile(currentFileName); |
718 | } else { | 722 | return; |
723 | } | ||
724 | else | ||
725 | { | ||
719 | DocLnk sf(f); | 726 | DocLnk sf(f); |
@@ -722,2 +729,3 @@ file.<BR>Open <B>.desktop</B> file or <B>linked</B> file?"), | |||
722 | filer = f; | 729 | filer = f; |
730 | } | ||
723 | 731 | ||
@@ -733,3 +741,2 @@ file.<BR>Open <B>.desktop</B> file or <B>linked</B> file?"), | |||
733 | 741 | ||
734 | } | ||
735 | showEditTools(); | 742 | showEditTools(); |