start();
}
void MainWindow::start(){
- //way.clear();
- flush();
way=conf->value(QString("start")).toStringList();
if(!way.isEmpty())getButtons(way.takeLast());
- else getButtons(QString("begin"));
}
MainWindow::~MainWindow()
{
download(c);
connect(m, SIGNAL(downloaded()), SLOT(writeUi()));
}
- else getButtons(a);
+ else {
+ getButtons(a);
+ getButtons(conf->value(QString("always")).toString());
+ }
}
void MainWindow::createMenuBar(){
FileMenu=new QMenu(trUtf8("&File"), this);
conf->setValue(QString("sepcmd"), QVariant("!@!"));
conf->setValue(QString("sepchc"), QVariant("!#!"));
conf->setValue(QString("sqlval"), QVariant("?"));
+ conf->setValue(QString("always"), QVariant("+always"));
qDebug()<<"firstrun() finished";
}
QString &MainWindow::get(int row, int column){
QString a=b;
if((b[0]!='-')&&(b[0]!='+'))way.append(a);
else a.remove(0, 1);
-
qDebug()<<"getButtons("<<a<<") way.size()"<<way.size();
- if((b[0]!='+')||(b[0]=='%'))flush();
+ if((b[0]!='*')&&(b[0]!='+'))flush();
+ else if(b[0]=='*')a.remove(0, 1);
+
if(updatelocker.tryLock(60000))updatelocker.unlock();
else{qDebug()<<"updatelocker is locked more than 1mn";}
QString c="%"+a+"%";