1 --- jahshaka/source/Jahshaka/JahWidgets/jahfileloader/dirview.cpp_orig 2006-05-17 15:01:32.449986750 +0200
2 +++ jahshaka/source/Jahshaka/JahWidgets/jahfileloader/dirview.cpp 2006-05-17 15:03:25.409046250 +0200
5 di->setCaption( "New collection" );
6 int choice = di->exec();
7 - const std::string thename = le->text();
8 + const std::string thename = le->text().ascii();
11 if ( le->text().stripWhiteSpace().length() == 0 || le->text().contains( QRegExp( "[^a-zA-Z0-9_\\s]" ) ) )
13 lab->setText( "Enter a new name for the collection.\nNames must be unique.");
14 QLineEdit *le = new QLineEdit( di );
16 - std::string curname = dir->text(0, false);
17 + std::string curname = dir->text(0, false).ascii();
18 le->setText( QString(curname.c_str() ) );
20 QPushButton *pb = new QPushButton( di );
23 di->setCaption( "Rename collection" );
24 int choice = di->exec();
25 - const std::string thename = le->text();
26 + const std::string thename = le->text().ascii();
29 if ( le->text().contains( QRegExp( "[^a-zA-Z0-9_\\s]" ) ) )
31 if ( dir->dirType() != Directory::Collection )
34 - std::string curname = dir->text(0, false);
35 + std::string curname = dir->text(0, false).ascii();