]>
Commit | Line | Data |
---|---|---|
1184afc6 | 1 | --- krusader/Panel/krdetailedview.cpp 2004-10-24 18:17:31.000000000 +0200 |
2 | +++ krusader/Panel/krdetailedview.cpp 2004-10-31 16:50:49.000000000 +0100 | |
3 | @@ -1034,8 +1034,8 @@ | |
4 | if ( item == startItem ) | |
5 | return ; | |
6 | if ( caseSensitive ? item->name().startsWith( str ) : item->name().lower().startsWith( str.lower() ) ) { | |
7 | - makeItemVisible( item ); | |
8 | setCurrentItem( item->name() ); | |
9 | + makeItemVisible( item ); | |
10 | return ; | |
11 | } | |
12 | } | |
13 | --- krusader/Panel/panelfunc.cpp 2004-10-20 02:03:26.000000000 +0200 | |
14 | +++ krusader/Panel/panelfunc.cpp 2004-11-11 21:40:09.000000000 +0100 | |
15 | @@ -650,6 +650,11 @@ | |
16 | if ( PackGUI::type == QString::null ) | |
17 | return ; // the user canceled | |
18 | ||
19 | + // check for partial URLs | |
20 | + if( !PackGUI::destination.contains(":/") && !PackGUI::destination.startsWith("/") ){ | |
21 | + PackGUI::destination = panel->virtualPath+"/"+PackGUI::destination; | |
22 | + } | |
23 | + | |
24 | bool packToOtherPanel = ( PackGUI::destination == panel->otherPanel->virtualPath ); | |
25 | ||
26 | // on remote URL-s first pack into a temp file then copy to its right place | |
27 | @@ -779,6 +784,10 @@ | |
28 | if ( dest == QString::null ) | |
29 | return ; // the usr canceled | |
30 | ||
31 | + // check for partial URLs | |
32 | + if( !dest.contains(":/") && !dest.startsWith("/") ){ | |
33 | + dest = panel->virtualPath+"/"+dest; | |
34 | + } | |
35 | bool packToOtherPanel = ( dest == panel->otherPanel->virtualPath ); | |
36 | ||
37 | for ( unsigned int i = 0; i < fileNames.count(); ++i ) { | |
38 | --- krusader/Panel/krdetailedviewitem.cpp 2004-10-23 00:01:44.000000000 +0200 | |
39 | +++ krusader/Panel/krdetailedviewitem.cpp 2004-11-01 09:20:40.000000000 +0100 | |
40 | @@ -74,8 +74,8 @@ | |
41 | // set text in columns, according to what columns are available | |
42 | int id = KrDetailedView::Unused; | |
43 | if ((id = mimeColumn) != -1) { | |
44 | - QString tmp = _vf->vfile_getMime(); | |
45 | - setText(id, tmp.mid(tmp.find('/')+1)); | |
46 | + QString tmp = KMimeType::mimeType(_vf->vfile_getMime())->comment(); | |
47 | + setText( id, tmp ); | |
48 | } | |
49 | if ((id = sizeColumn) != -1) { | |
50 | if (_vf->vfile_isDir() && _vf->vfile_getSize() <= 0) setText(id, "<DIR>"); | |
51 | --- krusader/UserAction/useractionxml.cpp 2004-10-12 16:20:43.000000000 +0200 | |
52 | +++ krusader/UserAction/useractionxml.cpp 2004-11-03 20:51:12.000000000 +0100 | |
53 | @@ -58,14 +58,17 @@ | |
54 | } | |
55 | file.close(); | |
56 | ||
57 | - QDomElement root = _doc->documentElement(); | |
58 | - // check if the file got the right root-element (ACTION_ROOT) - this finds out if the xml-file read to the DOM is realy an krusader useraction-file | |
59 | - if( root.tagName() != ACTION_ROOT ) { | |
60 | - kdWarning() << "UserActions: the actionfile's root-element isn't called "ACTION_ROOT", using " << _filename << endl; | |
61 | - delete _doc; _doc = 0; | |
62 | + if ( _doc ) { | |
63 | + QDomElement root = _doc->documentElement(); | |
64 | + // check if the file got the right root-element (ACTION_ROOT) - this finds out if the xml-file read to the DOM is realy an krusader useraction-file | |
65 | + if( root.tagName() != ACTION_ROOT ) { | |
66 | + kdWarning() << "UserActions: the actionfile's root-element isn't called "ACTION_ROOT", using " << _filename << endl; | |
67 | + delete _doc; _doc = 0; | |
68 | + } | |
69 | } | |
70 | - | |
71 | - } else | |
72 | + | |
73 | + } // if ( file.open( IO_ReadOnly ) ) | |
74 | + else | |
75 | _doc->appendChild( _doc->createElement( ACTION_ROOT ) ); // create new actionfile by adding a root-element ACTION_ROOT | |
76 | ||
77 | } |