-rw-r--r-- | noncore/apps/tinykate/tinykate.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/apps/tinykate/tinykate.cpp b/noncore/apps/tinykate/tinykate.cpp index c8c3b31..51afd31 100644 --- a/noncore/apps/tinykate/tinykate.cpp +++ b/noncore/apps/tinykate/tinykate.cpp | |||
@@ -157,18 +157,21 @@ void TinyKate::slotOpen( ) | |||
157 | } | 157 | } |
158 | } | 158 | } |
159 | 159 | ||
160 | void TinyKate::open(const QString & filename) | 160 | void TinyKate::open(const QString & filename) |
161 | { | 161 | { |
162 | KateDocument *kd= new KateDocument(false, false, this,0,this); | 162 | KateDocument *kd= new KateDocument(false, false, this,0,this); |
163 | KTextEditor::View *kv; | 163 | KTextEditor::View *kv; |
164 | QFileInfo fi(filename); | 164 | QFileInfo fi(filename); |
165 | tabwidget->addTab(kv=kd->createView(tabwidget,"bLAH"),"tinykate/tinykate",fi.fileName()); | 165 | QString filenamed = fi.fileName(); |
166 | tabwidget->addTab(kv=kd->createView(tabwidget,"bLAH"),"tinykate/tinykate", filenamed ); | ||
166 | qDebug(filename); | 167 | qDebug(filename); |
168 | |||
169 | kd->setDocName( filenamed); | ||
167 | kd->open(filename); | 170 | kd->open(filename); |
168 | viewCount++; | 171 | viewCount++; |
169 | } | 172 | } |
170 | 173 | ||
171 | void TinyKate::slotCurrentChanged( QWidget * view) | 174 | void TinyKate::slotCurrentChanged( QWidget * view) |
172 | { | 175 | { |
173 | if (currentView) { | 176 | if (currentView) { |
174 | 177 | ||