浏览代码

BUG: Update ctkScreenshotDialogTest1

ctkScreenshotDialogTest1 expected the default directory to be the current
directory, but the default is actually the empty string.
Max Smolens 7 年之前
父节点
当前提交
d29b2fced2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libs/Widgets/Testing/Cpp/ctkScreenshotDialogTest1.cpp

+ 1 - 1
Libs/Widgets/Testing/Cpp/ctkScreenshotDialogTest1.cpp

@@ -42,7 +42,7 @@ int ctkScreenshotDialogTest1(int argc, char * argv [] )
   // Check default values
   if (screenshotDialog.widgetToGrab() != 0 ||
       screenshotDialog.baseFileName() != "Untitled" ||
-      screenshotDialog.directory() != "." ||
+      !screenshotDialog.directory().isEmpty() ||
       screenshotDialog.delay() != 0)
     {
     std::cerr << "ctkScreenshotDialog, bad default values: "