author | llornkcor <llornkcor> | 2002-12-26 04:14:13 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-26 04:14:13 (UTC) |
commit | df79efd854ebb22046e98b9076d31e94e2245ab2 (patch) (side-by-side diff) | |
tree | 0a1c06fb787e44a2750ebf59efdf453c09ea2bd7 | |
parent | e4e891190200cf26ba4bafcadca17f2473493276 (diff) | |
download | opie-df79efd854ebb22046e98b9076d31e94e2245ab2.zip opie-df79efd854ebb22046e98b9076d31e94e2245ab2.tar.gz opie-df79efd854ebb22046e98b9076d31e94e2245ab2.tar.bz2 |
fix docname setting
-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 @@ -153,26 +153,29 @@ void TinyKate::slotOpen( ) { QString filename=OFileDialog::getOpenFileName(OFileSelector::EXTENDED_ALL); if (!filename.isEmpty()) { open(filename); } } 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++; } void TinyKate::slotCurrentChanged( QWidget * view) { if (currentView) { disconnect(editCopy,SIGNAL(activated()),currentView,SLOT(copy())); disconnect(editCut,SIGNAL(activated()),currentView,SLOT(cut())); disconnect(editPaste,SIGNAL(activated()),currentView,SLOT(paste())); disconnect(editUndo,SIGNAL(activated()),currentView,SLOT(undo())); |