Browse Source

Lotro skin box size fix, changed received path to patch files to absolute

Ivan Arkhipov 6 years ago
parent
commit
282b1d89a0
3 changed files with 8 additions and 8 deletions
  1. 3 3
      mainwindow.ui
  2. 3 3
      network.cpp
  3. 2 2
      ui_mainwindow.h

+ 3 - 3
mainwindow.ui

@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>611</width>
-    <height>350</height>
+    <width>513</width>
+    <height>345</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -1006,7 +1006,7 @@
      <rect>
       <x>430</x>
       <y>240</y>
-      <width>421</width>
+      <width>431</width>
       <height>221</height>
      </rect>
     </property>

+ 3 - 3
network.cpp

@@ -210,7 +210,7 @@ void ANetwork::getPaths(){
                  }
 
             } else {
-                qDebug("%s:%i: %s%s", __FILE__, __LINE__, "Патч отсутствует: ", app->helper->stringToChar(s));
+                qDebug("%s:%i: %s%s", __FILE__, __LINE__, "Патч отсутствует: ", s.toLocal8Bit().toStdString().c_str());
                 version = "100";
                 QLabel* obj = app->window->ui->mainbox->findChild<QLabel*>(s + "sStatus");
                 if (obj != nullptr) {
@@ -223,7 +223,7 @@ void ANetwork::getPaths(){
     }
 
     url.setQuery(query.query());
-    qDebug("%s:%i: %s%s", __FILE__, __LINE__, "Запрашиваем информацию о патчах: ", app->helper->stringToChar(url.fileName()));
+    qDebug("%s:%i: %s%s", __FILE__, __LINE__, "Запрашиваем информацию о патчах: ", url.fileName().toLocal8Bit().toStdString().c_str());
     QString content = this->query(url);
     if(content == "error"){
         qInfo("%s:%i: %s", __FILE__, __LINE__, "Отсутствует связь с сервером. Прервано.");
@@ -248,7 +248,7 @@ void ANetwork::getPaths(){
 
         QStringList pathline = values[0].split( "_" );
         pathline = pathline[0].split( "/" );
-        QUrl url = app->config->getValue("Network", "server") + values[0];
+        QUrl url = values[0];
         app->config->setValue("Hashes", pathline[3], values[1]);
         app->config->setValue("Datetime", pathline[3], values[2]);
 

+ 2 - 2
ui_mainwindow.h

@@ -151,7 +151,7 @@ public:
     {
         if (MainWindow->objectName().isEmpty())
             MainWindow->setObjectName(QStringLiteral("MainWindow"));
-        MainWindow->resize(611, 350);
+        MainWindow->resize(513, 345);
         MainWindow->setStyleSheet(QStringLiteral(""));
         centralWidget = new QWidget(MainWindow);
         centralWidget->setObjectName(QStringLiteral("centralWidget"));
@@ -394,7 +394,7 @@ public:
         news4Title->setGeometry(QRect(70, 160, 371, 21));
         helpbox = new QGroupBox(centralWidget);
         helpbox->setObjectName(QStringLiteral("helpbox"));
-        helpbox->setGeometry(QRect(430, 240, 421, 221));
+        helpbox->setGeometry(QRect(430, 240, 431, 221));
         textBrowser = new QTextBrowser(helpbox);
         textBrowser->setObjectName(QStringLiteral("textBrowser"));
         textBrowser->setGeometry(QRect(10, 0, 411, 221));