[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/kvoctrain/kvoctrain
From: Peter Hedlund <peter () peterandlinda ! com>
Date: 2005-02-16 4:08:50
Message-ID: 20050216040850.3C5981D222 () office ! kde ! org
[Download RAW message or body]
CVS commit by hedlund:
Make sure a vocabulary is saved when opening another vocabulary and automatic saving is active.
BUG:99298
M +9 -37 kva_io.cpp 1.47
--- kdeedu/kvoctrain/kvoctrain/kva_io.cpp #1.46:1.47
@@ -7,9 +7,7 @@
begin : Thu Mar 11 20:50:53 MET 1999
- copyright : (C) 1999-2001 Ewald Arnold
+ copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
(C) 2001 The KDE-EDU team
- (C) 2004-2005 Peter Hedlund
-
- email : kvoctrain@ewald-arnold.de
+ (C) 2004-2005 Peter Hedlund <peter@peterandlinda.com>
-----------------------------------------------------------------------
@@ -143,36 +141,10 @@ void kvoctrainApp::slotFileOpenRecent(co
{
slotStatusMsg(i18n("Opening file..."));
+ if (queryExit() && fileOpenRecent->items().count() > 0)
+ {
fileOpenRecent->setCurrentItem(-1);
loadfileFromPath(url);
- /*
- id_ >>= 16;
- if (queryExit() && recent_files.count() != 0) {
- QString name = recent_files[id_];
- if (!name.isEmpty() ) {
- view->setView(0, langset, gradecols);
- delete doc;
- doc = 0;
-
- QString format = i18n("Loading %1");
- QString msg = format.arg(name);
-
- slotStatusMsg(msg);
- prepareProgressBar();
- doc = new kvoctrainDoc (this, KURL(name), separator, &paste_order);
- removeProgressBar();
- loadDocProps(doc);
- addRecentFile(name);
- view->setView(doc, langset, gradecols);
- view->getTable()->setFont(tablefont);
- view->adjustContent();
- connect (doc, SIGNAL (docModified(bool)), this, SLOT(slotModifiedDoc(bool)));
- doc->setModified(false);
- }
}
- */
slotStatusMsg(IDS_DEFAULT);
-
- for (int i = 0; i < 10; i++)
- kapp->processEvents();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic