From df79efd854ebb22046e98b9076d31e94e2245ab2 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 26 Dec 2002 04:14:13 +0000 Subject: fix docname setting --- 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 @@ -162,8 +162,11 @@ void TinyKate::open(const QString & filename) KateDocument *kd= new KateDocument(false, false, this,0,this); KTextEditor::View *kv; QFileInfo fi(filename); - tabwidget->addTab(kv=kd->createView(tabwidget,"bLAH"),"tinykate/tinykate",fi.fileName()); + QString filenamed = fi.fileName(); + tabwidget->addTab(kv=kd->createView(tabwidget,"bLAH"),"tinykate/tinykate", filenamed ); qDebug(filename); + + kd->setDocName( filenamed); kd->open(filename); viewCount++; } -- cgit v0.9.0.2