osdir.com
mailing list archive

Subject: [Bug 87617] kio file gives confusing error message when opened file is deleted on disc - msg#00246

List: kde.devel.kwrite

Date: Prev Next Index Thread: Prev Next Index
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

http://bugs.kde.org/show_bug.cgi?id=87617
anders alweb dk changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED



------- Additional Comments From anders alweb dk 2004-09-28 01:58 -------
CVS commit by alund:

uninline reasonedMOHString, so that the strings gets translated :\
Backport follows
CCMAIL: 87617-done bugs kde org


M +13 -0 katedocument.cpp 1.753
M +3 -14 katedocument.h 1.292


--- kdelibs/kate/part/katedocument.cpp #1.752:1.753
@ -5325,4 +5325,17 @ bool KateDocument::createDigest( QCStrin
}

+QString KateDocument::reasonedMOHString() const
+{
+ QString reason;
+ if ( m_modOnHdReason == 1 )
+ reason = i18n("modified");
+ else if ( m_modOnHdReason == 2 )
+ reason = i18n("created");
+ else if ( m_modOnHdReason == 3 )
+ reason = i18n("deleted");
+
+ return i18n("The file '%1' was changed (%2) on disk by another
program.").arg( url().prettyURL() ).arg( reason );
+}
+
void KateDocument::removeTrailingSpace( uint line )
{

--- kdelibs/kate/part/katedocument.h #1.291:1.292
@ -934,16 +934,5 @ class KateDocument : public Kate::Docume
* since 3.3
*/
- inline QString reasonedMOHString() const
- {
- QString reason;
- if ( m_modOnHdReason == 1 )
- reason = i18n("modified");
- else if ( m_modOnHdReason == 2 )
- reason = i18n("created");
- else if ( m_modOnHdReason == 3 )
- reason = i18n("deleted");
-
- return i18n("The file '%1' was changed (%2) on disk by another
program.").arg( url().prettyURL() ).arg( reason );
- }
+ QString reasonedMOHString() const;

/**


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Kate and the Terminal Tool

On Monday 30 August 2004 04:35, Jason A. Crome wrote: > I posted about this a while ago, and guess I am still a little unclear. . . > > When I execute Konsole from the panel or from my desktop, I can execute it > with the --ls option to get it to start a login shell. How do I get > konsole to start with --ls when it is embedded in Kate? I've been over the > menus, help files, and the Kate config files in ~/.kde/share/config and > still cannot figure out how to make this happen. > > Please, can anyone help me out here? :) > > Thanks a bunch. Love Kate, can't live without it :) I dont think you can. -anders -- Hjælp verden -- tænk, tal og stem IMOD Bush ved det amerikanske valg Help the world -- think, speak and vote AGAINST Bush at the american election

Next Message by Date: click to view message preview

[Bug 81005] [PATCH] Corresponding parenthesis does not get colorized

------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=81005 anders alweb dk changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From anders alweb dk 2004-09-28 09:33 ------- CVS commit by alund: Patch from Jesse to improve the bracket matching alegoritm, attachec to #81005 Backport follows CCMAIL: 81005-done bugs kde org, "Jesse R. Yurkovich" <yurkjes iit edu> M +5 -5 katedocument.cpp 1.754 --- kdelibs/kate/part/katedocument.cpp #1.753:1.754 @ -4286,7 +4286,7 @ inline bool isBracket ( const QChar& Bracket matching uses the following algorithm: If in overwrite mode, match the bracket currently underneath the cursor. - Otherwise, if the character to the left of the cursor is an ending bracket, - match it. Otherwise if the character to the right of the cursor is a - starting bracket, match it. Otherwise, if the the character to the left + Otherwise, if the character to the right of the cursor is an starting bracket, + match it. Otherwise if the character to the left of the cursor is a + ending bracket, match it. Otherwise, if the the character to the left of the cursor is an starting bracket, match it. Otherwise, if the character to the right of the cursor is an ending bracket, match it. Otherwise, don't @ -4321,9 +4321,9 @ bool KateDocument::findMatchingBracket( return false; } + } else if ( isStartBracket( right ) ) { + bracket = right; } else if ( isEndBracket( left ) ) { start.setCol(start.col() - 1); bracket = left; - } else if ( isStartBracket( right ) ) { - bracket = right; } else if ( isBracket( left ) ) { start.setCol(start.col() - 1);

Previous Message by Thread: click to view message preview

Re: Kate and the Terminal Tool

On Monday 30 August 2004 04:35, Jason A. Crome wrote: > I posted about this a while ago, and guess I am still a little unclear. . . > > When I execute Konsole from the panel or from my desktop, I can execute it > with the --ls option to get it to start a login shell. How do I get > konsole to start with --ls when it is embedded in Kate? I've been over the > menus, help files, and the Kate config files in ~/.kde/share/config and > still cannot figure out how to make this happen. > > Please, can anyone help me out here? :) > > Thanks a bunch. Love Kate, can't live without it :) I dont think you can. -anders -- Hjælp verden -- tænk, tal og stem IMOD Bush ved det amerikanske valg Help the world -- think, speak and vote AGAINST Bush at the american election

Next Message by Thread: click to view message preview

[Bug 87617] kio file gives confusing error message when opened file is deleted on disc

------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=87617 rinse kde nl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Additional Comments From rinse kde nl 2004-09-28 22:57 ------- I reopened the bug, Because I fail to see how this patch resolves the problem :o) Why are those error messages in such a technical way? Why not just straight ahead error messages that give the correct information about the problem? I mean not like this: The file 'hi.txt' was changed (deleted) on disk by another program" What do you want to do? |Reload File |Ignore Changes| But like this: The file 'hi.txt' was deleted on disk by another program" What do you want to do? |Restore File|Ignore Changes| The first still gives an odd option, since there is no file on disc that can be reloaded. Also, the dialog has also this option: The file 'test' was changed (Created) on disk by another program" What do you want to do? |Reload File |Ignore Changes| Now, how can another program create the file on disc if it is already there? The code is found in kdelibs/kate/part/katedocument.cpp (starting at 4443). Kind regards, Rinse
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by