|
|
@ -321,7 +321,7 @@ void SearchEngine::on_search_button_clicked(){ |
|
|
|
// Reload environment variables (proxy)
|
|
|
|
// Reload environment variables (proxy)
|
|
|
|
searchProcess->setEnvironment(QProcess::systemEnvironment()); |
|
|
|
searchProcess->setEnvironment(QProcess::systemEnvironment()); |
|
|
|
|
|
|
|
|
|
|
|
QString pattern = search_pattern->text().trimmed(); |
|
|
|
const QString pattern = search_pattern->text().trimmed(); |
|
|
|
// No search pattern entered
|
|
|
|
// No search pattern entered
|
|
|
|
if(pattern.isEmpty()){ |
|
|
|
if(pattern.isEmpty()){ |
|
|
|
QMessageBox::critical(0, tr("Empty search pattern"), tr("Please type a search pattern first")); |
|
|
|
QMessageBox::critical(0, tr("Empty search pattern"), tr("Please type a search pattern first")); |
|
|
@ -331,7 +331,9 @@ void SearchEngine::on_search_button_clicked(){ |
|
|
|
currentSearchTab=new SearchTab(this); |
|
|
|
currentSearchTab=new SearchTab(this); |
|
|
|
connect(currentSearchTab->header(), SIGNAL(sectionResized(int, int, int)), this, SLOT(propagateSectionResized(int,int,int))); |
|
|
|
connect(currentSearchTab->header(), SIGNAL(sectionResized(int, int, int)), this, SLOT(propagateSectionResized(int,int,int))); |
|
|
|
all_tab.append(currentSearchTab); |
|
|
|
all_tab.append(currentSearchTab); |
|
|
|
tabWidget->addTab(currentSearchTab, pattern); |
|
|
|
QString tabName = pattern; |
|
|
|
|
|
|
|
tabName.replace(QRegExp("&{1}"), "&&"); |
|
|
|
|
|
|
|
tabWidget->addTab(currentSearchTab, tabName); |
|
|
|
tabWidget->setCurrentWidget(currentSearchTab); |
|
|
|
tabWidget->setCurrentWidget(currentSearchTab); |
|
|
|
#if QT_VERSION < 0x040500 |
|
|
|
#if QT_VERSION < 0x040500 |
|
|
|
closeTab_button->setEnabled(true); |
|
|
|
closeTab_button->setEnabled(true); |
|
|
|