Dash:
[t2.git] / package / multimedia / jahshaka / qt-stl.patch
blob8403ea9e1cabeff92d8992e30b25e710e0bb6ee7
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
3 @@ -1029,7 +1029,7 @@
4 box->setSpacing(15);
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();
9 bool ok = true;
11 if ( le->text().stripWhiteSpace().length() == 0 || le->text().contains( QRegExp( "[^a-zA-Z0-9_\\s]" ) ) )
12 @@ -1079,7 +1079,7 @@
13 lab->setText( "Enter a new name for the collection.\nNames must be unique.");
14 QLineEdit *le = new QLineEdit( di );
15 box->addWidget( le );
16 - std::string curname = dir->text(0, false);
17 + std::string curname = dir->text(0, false).ascii();
18 le->setText( QString(curname.c_str() ) );
19 le->selectAll();
20 QPushButton *pb = new QPushButton( di );
21 @@ -1092,7 +1092,7 @@
22 box->setSpacing(15);
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();
27 bool ok = true;
29 if ( le->text().contains( QRegExp( "[^a-zA-Z0-9_\\s]" ) ) )
30 @@ -1123,7 +1123,7 @@
31 if ( dir->dirType() != Directory::Collection )
32 return;
34 - std::string curname = dir->text(0, false);
35 + std::string curname = dir->text(0, false).ascii();
37 bool ok = true;