summaryrefslogtreecommitdiff
path: root/core/apps/textedit/filePermissions.cpp
Unidiff
Diffstat (limited to 'core/apps/textedit/filePermissions.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/filePermissions.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/apps/textedit/filePermissions.cpp b/core/apps/textedit/filePermissions.cpp
index 5af3971..def957b 100644
--- a/core/apps/textedit/filePermissions.cpp
+++ b/core/apps/textedit/filePermissions.cpp
@@ -35,8 +35,8 @@ filePermissions::filePermissions( QWidget* parent, const char* name, bool modal
35 : QDialog( parent, name, modal, fl ) 35 : QDialog( parent, name, modal, fl )
36{ 36{
37 if ( !name ) 37 if ( !name )
38 setName( "filePermissions" ); 38 setName( tr("filePermissions") );
39 qDebug("FilePermissions "+fileName); 39// qDebug("FilePermissions "+fileName);
40 resize( 236, 210 ); 40 resize( 236, 210 );
41 setMaximumSize( QSize( 236, 210 ) ); 41 setMaximumSize( QSize( 236, 210 ) );
42 setCaption( tr( "Set File Permissions" ) ); 42 setCaption( tr( "Set File Permissions" ) );
@@ -248,25 +248,25 @@ void filePermissions::accept() {
248 pwd = getpwnam(OwnerLineEdit->text().latin1() ); 248 pwd = getpwnam(OwnerLineEdit->text().latin1() );
249 if(pwd == NULL) { 249 if(pwd == NULL) {
250 perror("getpwnam"); 250 perror("getpwnam");
251 QMessageBox::warning(this,"Warning","Error- no user"); 251 QMessageBox::warning(this,tr("Warning"),tr("Error- no user"));
252 return; 252 return;
253 } else { 253 } else {
254 grp = getgrnam(GroupLineEdit->text().latin1()); 254 grp = getgrnam(GroupLineEdit->text().latin1());
255 if(grp==NULL) { 255 if(grp==NULL) {
256 perror("getgrnam"); 256 perror("getgrnam");
257 QMessageBox::warning(this,"Warning","Error- no group"); 257 QMessageBox::warning(this,tr("Warning"),tr("Error- no group"));
258 return; 258 return;
259 } 259 }
260 if( chown( file.latin1(), pwd->pw_uid, grp->gr_gid) <0) { 260 if( chown( file.latin1(), pwd->pw_uid, grp->gr_gid) <0) {
261 perror("chown"); 261 perror("chown");
262 QMessageBox::warning(this,"Warning","Error setting ownership or group"); 262 QMessageBox::warning(this,tr("Warning"),tr("Error setting ownership or group"));
263 return; 263 return;
264 } 264 }
265 bool ok; 265 bool ok;
266 uint moder = modeStr.toUInt(&ok,8); 266 uint moder = modeStr.toUInt(&ok,8);
267 if( chmod( file.latin1(), moder) < 0) { 267 if( chmod( file.latin1(), moder) < 0) {
268 perror("chmod"); 268 perror("chmod");
269 QMessageBox::warning(this,"Warning","Error setting mode"); 269 QMessageBox::warning(this,tr("Warning"),tr("Error setting mode"));
270 return; 270 return;
271 } 271 }
272 } 272 }