mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
Fix QString -> std::string compilation problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9988 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6730c51c69
commit
7598e0b791
@ -1,3 +1,8 @@
|
||||
2005-05-31 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* QBibtexDialog.C (addDatabase): fix QString ->std::string
|
||||
compilation problem.
|
||||
|
||||
2005-05-31 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* validators.C (validate): allow ':' characters in file names.
|
||||
|
@ -150,9 +150,9 @@ void QBibtexDialog::addPressed()
|
||||
void QBibtexDialog::addDatabase()
|
||||
{
|
||||
int const sel = add_->bibLB->currentItem();
|
||||
QString const file = trim(add_->bibED->text());
|
||||
string const file = trim(fromqstr(add_->bibED->text()));
|
||||
|
||||
if (sel < 0 && file.isNull())
|
||||
if (sel < 0 && file.empty())
|
||||
return;
|
||||
|
||||
// Add the selected browser_bib keys to browser_database
|
||||
@ -165,8 +165,8 @@ void QBibtexDialog::addDatabase()
|
||||
}
|
||||
}
|
||||
|
||||
if (!file.isEmpty()) {
|
||||
QString const f = toqstr(ChangeExtension(fromqstr(file), ""));
|
||||
if (!file.empty()) {
|
||||
QString const f = toqstr(ChangeExtension(file, ""));
|
||||
if ((databaseLB->findItem(f)) == 0)
|
||||
databaseLB->insertItem(f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user