summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate
Unidiff
Diffstat (limited to 'noncore/apps/tinykate') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/tinykate/tinykate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/tinykate/tinykate.cpp b/noncore/apps/tinykate/tinykate.cpp
index f177e47..a823530 100644
--- a/noncore/apps/tinykate/tinykate.cpp
+++ b/noncore/apps/tinykate/tinykate.cpp
@@ -155,13 +155,14 @@ void TinyKate::slotOpen( )
155} 155}
156 156
157void TinyKate::open(const QString & filename) 157void TinyKate::open(const QString & filename)
158{ 158{
159 KateDocument *kd= new KateDocument(false, false, this,0,this); 159 KateDocument *kd= new KateDocument(false, false, this,0,this);
160 KTextEditor::View *kv; 160 KTextEditor::View *kv;
161 tabwidget->addTab(kv=kd->createView(tabwidget,"bLAH"),"tinykate/tinykate","BLAH"); 161 QFileInfo fi(filename);
162 tabwidget->addTab(kv=kd->createView(tabwidget,"bLAH"),"tinykate/tinykate",fi.fileName());
162 qDebug(filename); 163 qDebug(filename);
163 kd->open(filename); 164 kd->open(filename);
164 viewCount++; 165 viewCount++;
165} 166}
166 167
167void TinyKate::slotCurrentChanged( QWidget * view) 168void TinyKate::slotCurrentChanged( QWidget * view)