mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed Qt4-building
This commit is contained in:
parent
aae88e9842
commit
b328d49afb
@ -116,9 +116,9 @@ void FolderController::service(HttpRequest& request, HttpResponse& response)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QStack<QPair<qulonglong, quint32> > path = session.getNavigationPath();
|
QStack<QPair<qulonglong, quint32> > path = session.getNavigationPath();
|
||||||
if(path.length()>1)
|
if(path.count()>1)
|
||||||
{
|
{
|
||||||
QPair<qulonglong, quint32> parentItem = path.at(path.length()-2);
|
QPair<qulonglong, quint32> parentItem = path.at(path.count()-2);
|
||||||
qulonglong upParent = parentItem.first;
|
qulonglong upParent = parentItem.first;
|
||||||
quint32 upPage = parentItem.second;
|
quint32 upPage = parentItem.second;
|
||||||
t.setVariable(QString("upurl"),"/library/" + QString::number(libraryId) + "/folder/" +QString("%1?page=%2&up=true").arg(upParent).arg(upPage));
|
t.setVariable(QString("upurl"),"/library/" + QString::number(libraryId) + "/folder/" +QString("%1?page=%2&up=true").arg(upParent).arg(upPage));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user