Summary: | create many new file with CTRL+N | ||
---|---|---|---|
Product: | quanta | Reporter: | Yan Morin <yansanmo.site> |
Component: | general | Assignee: | András Manţia <amantia> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Patch to create many empty file |
Description
Yan Morin
2005-08-08 22:17:41 UTC
Created attachment 12150 [details]
Patch to create many empty file
Other suggestions: (when opening file inside a project)q Index: quanta_init.cpp =================================================================== --- quanta_init.cpp (révision 443949) +++ quanta_init.cpp (copie de travail) @@ -658,7 +659,7 @@ Document *w = ViewManager::ref()->activeDocument(); if (w) //w==0 might happen on quick close on startup { - m_quanta->setCaption(w->url().prettyURL() ); + m_quanta->setTitle(w->url().prettyURL() ); // m_quanta->slotUpdateStatus(w);//FIXME: } } and when creating a new document: Index: viewmanager.cpp =================================================================== --- viewmanager.cpp (révision 443949) +++ viewmanager.cpp (copie de travail) @@ -107,7 +107,7 @@ void ViewManager::createNewDocument() { int i = 1; - while (isOpened(KURL("file:"+i18n("Untitled%1").arg(i)))) i++; + while (isOpened(KURL("file://"+i18n("Untitled%1").arg(i)))) i++; QString fname = i18n("Untitled%1").arg(i); QuantaView *view = createView(fname); This is only one line issue, it's more for the 'idea' that the real patch On Tuesday 09 August 2005 00:24, Yan Morin wrote: > 23:24 ------- Other suggestions: (when opening file inside a > project)q > Index: quanta_init.cpp > =================================================================== > --- quanta_init.cpp (révision 443949) > +++ quanta_init.cpp (copie de travail) > @ -658,7 +659,7 @ > Document *w = ViewManager::ref()->activeDocument(); > if (w) //w==0 might happen on quick close on startup > { > - m_quanta->setCaption(w->url().prettyURL() ); > + m_quanta->setTitle(w->url().prettyURL() ); > // m_quanta->slotUpdateStatus(w);//FIXME: > } > } I don't understand the reasoning of this patch. > int i = 1; > - while (isOpened(KURL("file:"+i18n("Untitled%1").arg(i)))) i++; > + while (isOpened(KURL("file://"+i18n("Untitled%1").arg(i)))) i++; This will break a lot of things. "file:UntitledN" is a special (invalid) URL used to note not-yet-saved files. Andras Yes I thought that the // would corrected the file increment, but both didn't work I don't know why.. BTW, why does this make sense? Certainly I hate when Kate restores 5 Untitled documents on startup. ;-) As I said, I don't really like this behavior. |